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

Public Member Functions

 ChargeMixingTest ()
void wire_charge (const int nspin, const int nrxx, const int npw, const bool kin_den)
MixingConfig make_cfg ()
void sync_cfg (Charge_Mixing &cm)

Public Attributes

UnitCell ucell
ModulePW::PW_Basis pw_basis
ModulePW::PW_Basis_Sup pw_dbasis
Charge charge
MixingConfig cfg
std::vector< double > buf_rho
std::vector< double > buf_rho_save
std::vector< double > buf_kin_r
std::vector< double > buf_kin_r_save
std::vector< std::complex< double > > buf_rhog
std::vector< std::complex< double > > buf_rhog_save
std::vector< double * > ptr_rho
std::vector< double * > ptr_rho_save
std::vector< double * > ptr_kin_r
std::vector< double * > ptr_kin_r_save
std::vector< std::complex< double > * > ptr_rhog
std::vector< std::complex< double > * > ptr_rhog_save

Detailed Description

Constructor & Destructor Documentation

◆ ChargeMixingTest()

ChargeMixingTest::ChargeMixingTest ( )
inline

Member Function Documentation

◆ make_cfg()

MixingConfig ChargeMixingTest::make_cfg ( )
inline
Here is the call graph for this function:

◆ sync_cfg()

void ChargeMixingTest::sync_cfg ( Charge_Mixing & cm)
inline
Here is the call graph for this function:

◆ wire_charge()

void ChargeMixingTest::wire_charge ( const int nspin,
const int nrxx,
const int npw,
const bool kin_den )
inline

Member Data Documentation

◆ buf_kin_r

std::vector<double> ChargeMixingTest::buf_kin_r

◆ buf_kin_r_save

std::vector<double> ChargeMixingTest::buf_kin_r_save

◆ buf_rho

std::vector<double> ChargeMixingTest::buf_rho

Backing storage for the Charge views under test. charge.cpp is not one of this target's sources, so Charge::allocate() is unavailable here and the fixture supplies the buffers itself, pointing the public rho/rhog/kin_r views at them with the same is*nrxx (resp. is*npw) stride allocate() would lay out. Owning them as vectors also means the fixture cleans up after itself.

◆ buf_rho_save

std::vector<double> ChargeMixingTest::buf_rho_save

◆ buf_rhog

std::vector<std::complex<double> > ChargeMixingTest::buf_rhog

◆ buf_rhog_save

std::vector<std::complex<double> > ChargeMixingTest::buf_rhog_save

◆ cfg

MixingConfig ChargeMixingTest::cfg

The mixing configuration under test. The production mixing code takes this snapshot explicitly rather than reading any global, so the fixture owns it outright instead of staging values in the parameter singleton; each case amends the fields it cares about and hands it to set_mixing().

◆ charge

Charge ChargeMixingTest::charge

◆ ptr_kin_r

std::vector<double*> ChargeMixingTest::ptr_kin_r

◆ ptr_kin_r_save

std::vector<double*> ChargeMixingTest::ptr_kin_r_save

◆ ptr_rho

std::vector<double*> ChargeMixingTest::ptr_rho

◆ ptr_rho_save

std::vector<double*> ChargeMixingTest::ptr_rho_save

◆ ptr_rhog

std::vector<std::complex<double>*> ChargeMixingTest::ptr_rhog

◆ ptr_rhog_save

std::vector<std::complex<double>*> ChargeMixingTest::ptr_rhog_save

◆ pw_basis

ModulePW::PW_Basis ChargeMixingTest::pw_basis

◆ pw_dbasis

ModulePW::PW_Basis_Sup ChargeMixingTest::pw_dbasis

◆ ucell

UnitCell ChargeMixingTest::ucell

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