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

Protected Member Functions

void SetUp () override
void TearDown () override

Protected Attributes

UcellTestPrepare utp = UcellTestLib["Si"]
std::unique_ptr< UnitCell > ucell
Charge * charge
ModulePW::PW_Basis * rhopw
std::string output
int nspin = 1
int test_charge = 0
double nelec = 8
bool out_elf_on = false

Detailed Description

Member Function Documentation

◆ SetUp()

void ChargeTest::SetUp ( )
inlineoverrideprotected

◆ TearDown()

void ChargeTest::TearDown ( )
inlineoverrideprotected

Member Data Documentation

◆ charge

Charge* ChargeTest::charge
protected

◆ nelec

double ChargeTest::nelec = 8
protected

◆ nspin

int ChargeTest::nspin = 1
protected

Charge::allocate() and Charge::renormalize_rho() take these explicitly, so the fixture owns them instead of writing the global parameter singleton. The values mirror the Input_para defaults the test relied on.

◆ out_elf_on

bool ChargeTest::out_elf_on = false
protected

◆ output

std::string ChargeTest::output
protected

◆ rhopw

ModulePW::PW_Basis* ChargeTest::rhopw
protected

◆ test_charge

int ChargeTest::test_charge = 0
protected

◆ ucell

std::unique_ptr<UnitCell> ChargeTest::ucell
protected

◆ utp

UcellTestPrepare ChargeTest::utp = UcellTestLib["Si"]
protected

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