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

Protected Member Functions

void setup_pw_basis ()
void open_warning (const std::string &path)
void close_warning ()
std::string read_warning_file (const std::string &path)
void fill_rhog (const int nspin)
void write_binary_by_hand (const std::string &filename, const int gamma_only_flag, const int nspin_file, const std::vector< std::array< int, 3 > > &miller, const std::vector< std::vector< std::complex< double > > > &values) const
virtual void SetUp ()
virtual void TearDown ()

Static Protected Member Functions

static ModuleBase::Matrix3 latvec ()

Protected Attributes

ModulePW::PW_Basis rhopw
std::vector< std::vector< std::complex< double > > > rhog_data
std::vector< std::complex< double > * > rhog
Parallel::ParaWorld pw_world = Parallel::make_pw_world()
std::ofstream warning_stream

Detailed Description

  • Tested Functions:
    • read_rhog()
    • write_rhog()

All binary inputs are generated inside the tests (either via write_rhog round-trip or by hand-crafting the byte layout), so no support/*.dat file is required. The hand-crafted case (ReadLegacyBinaryFormat) pins the on-disk format against silent drift of the writer.

Member Function Documentation

◆ close_warning()

void ReadRhogTest::close_warning ( )
inlineprotected
Here is the caller graph for this function:

◆ fill_rhog()

void ReadRhogTest::fill_rhog ( const int nspin)
inlineprotected

◆ latvec()

ModuleBase::Matrix3 ReadRhogTest::latvec ( )
inlinestaticprotected
Here is the caller graph for this function:

◆ open_warning()

void ReadRhogTest::open_warning ( const std::string & path)
inlineprotected

◆ read_warning_file()

std::string ReadRhogTest::read_warning_file ( const std::string & path)
inlineprotected

◆ SetUp()

virtual void ReadRhogTest::SetUp ( )
inlineprotectedvirtual

◆ setup_pw_basis()

void ReadRhogTest::setup_pw_basis ( )
inlineprotected
Here is the call graph for this function:

◆ TearDown()

virtual void ReadRhogTest::TearDown ( )
inlineprotectedvirtual
Here is the call graph for this function:

◆ write_binary_by_hand()

void ReadRhogTest::write_binary_by_hand ( const std::string & filename,
const int gamma_only_flag,
const int nspin_file,
const std::vector< std::array< int, 3 > > & miller,
const std::vector< std::vector< std::complex< double > > > & values ) const
inlineprotected
Here is the call graph for this function:

Member Data Documentation

◆ pw_world

Parallel::ParaWorld ReadRhogTest::pw_world = Parallel::make_pw_world()
protected

◆ rhog

std::vector<std::complex<double>*> ReadRhogTest::rhog
protected

◆ rhog_data

std::vector<std::vector<std::complex<double> > > ReadRhogTest::rhog_data
protected

◆ rhopw

ModulePW::PW_Basis ReadRhogTest::rhopw
protected

◆ warning_stream

std::ofstream ReadRhogTest::warning_stream
protected

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