ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ReadOrbBoundaryTest Class Reference
Inheritance diagram for ReadOrbBoundaryTest:
Collaboration diagram for ReadOrbBoundaryTest:

Protected Member Functions

void SetUp () override
void TearDown () override
std::string write_orb_file (const std::string &name, const std::string &content)

Protected Attributes

Atom atom
std::ofstream ofs_running
std::string log_path
std::string orb_path

Detailed Description

  • Tested Functions:
    • ZeroCountBeyondLmaxTolerated
      • read_orb_file(): orbital generators conventionally keep zero-count declaration lines for channels beyond Lmax (e.g. an s-only minimal basis still lists "Number of Porbital--> 0"); these must be tolerated without accessing l_nchi out of bounds
    • NormalMultiChannel
      • read_orb_file(): channels within Lmax are counted as before
    • NonzeroCountBeyondLmaxRejected
      • read_orb_file(): a nonzero count beyond Lmax is a malformed file
    • ChannelBeforeLmaxRejected
      • read_orb_file(): channel lines before the Lmax declaration are malformed, because l_nchi is not allocated yet
    • NonNumericCountBeyondLmaxRejected / MissingCountBeyondLmaxRejected
      • read_orb_file(): a count that fails numeric extraction (garbage or missing) is malformed; READ_VALUE cannot be used for it because it hides the failure

Member Function Documentation

◆ SetUp()

void ReadOrbBoundaryTest::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void ReadOrbBoundaryTest::TearDown ( )
inlineoverrideprotected

◆ write_orb_file()

std::string ReadOrbBoundaryTest::write_orb_file ( const std::string & name,
const std::string & content )
inlineprotected

Member Data Documentation

◆ atom

Atom ReadOrbBoundaryTest::atom
protected

◆ log_path

std::string ReadOrbBoundaryTest::log_path
protected

◆ ofs_running

std::ofstream ReadOrbBoundaryTest::ofs_running
protected

◆ orb_path

std::string ReadOrbBoundaryTest::orb_path
protected

The documentation for this class was generated from the following file: