|
| const int | nrxx = 8 |
| | local real-space grid points
|
| const int | nxyz = 8 |
| | global real-space grid points
|
| const double | omega = 2.0 |
| | cell volume
|
| const double | nelec = 4.0 |
| | target electron number
|
| std::vector< double > | rho_up |
| std::vector< double > | rho_dn |
| std::vector< double * > | rho |
- Tested Functions:
- cal_rho2ne: integrate a single spin channel over the grid and scale by omega / nxyz to obtain the electron number
- check_rho: nspin == 1/4 total-density check, nspin == 2 spin-up/down checks, mismatch warning path and negative-channel abort path
- core_charge_form_factor: the shared per-point radial kernel against the closed-form Gaussian transform – this pins the ABSOLUTE radial normalization (4pi/Omega and the Simpson mesh convention), which the DFPT localization/phase regressions do not constrain independently
◆ SetUp()
| void ChgToolsTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
◆ nelec
| const double ChgToolsTest::nelec = 4.0 |
|
protected |
◆ nrxx
| const int ChgToolsTest::nrxx = 8 |
|
protected |
local real-space grid points
◆ nxyz
| const int ChgToolsTest::nxyz = 8 |
|
protected |
global real-space grid points
◆ omega
| const double ChgToolsTest::omega = 2.0 |
|
protected |
◆ rho
| std::vector<double*> ChgToolsTest::rho |
|
protected |
◆ rho_dn
| std::vector<double> ChgToolsTest::rho_dn |
|
protected |
◆ rho_up
| std::vector<double> ChgToolsTest::rho_up |
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_estate/module_charge/unittests/test_chg_tools.cpp