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

Public Member Functions

bool call_read_cube (const std::string &fn)

Public Attributes

std::vector< std::string > comment
int natom = 0
std::vector< double > origin
int nx_read = 0
int ny_read = 0
int nz_read = 0
std::vector< double > dx
std::vector< double > dy
std::vector< double > dz
std::vector< int > atom_type
std::vector< double > atom_charge
std::vector< std::vector< double > > atom_pos
std::vector< double > data_read

Detailed Description

  • Tested Functions:
    • read_cube()
      • returns false for a truncated file (missing grid data)
      • returns false for invalid (zero) grid dimensions
    • read_vdata_palgrid()
      • aborts the run instead of reading invalid data or hanging other ranks

Member Function Documentation

◆ call_read_cube()

bool ReadCubeInvalidTest::call_read_cube ( const std::string & fn)
inline
Here is the call graph for this function:

Member Data Documentation

◆ atom_charge

std::vector<double> ReadCubeInvalidTest::atom_charge

◆ atom_pos

std::vector<std::vector<double> > ReadCubeInvalidTest::atom_pos

◆ atom_type

std::vector<int> ReadCubeInvalidTest::atom_type

◆ comment

std::vector<std::string> ReadCubeInvalidTest::comment

◆ data_read

std::vector<double> ReadCubeInvalidTest::data_read

◆ dx

std::vector<double> ReadCubeInvalidTest::dx

◆ dy

std::vector<double> ReadCubeInvalidTest::dy

◆ dz

std::vector<double> ReadCubeInvalidTest::dz

◆ natom

int ReadCubeInvalidTest::natom = 0

◆ nx_read

int ReadCubeInvalidTest::nx_read = 0

◆ ny_read

int ReadCubeInvalidTest::ny_read = 0

◆ nz_read

int ReadCubeInvalidTest::nz_read = 0

◆ origin

std::vector<double> ReadCubeInvalidTest::origin

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