|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include "gmock/gmock.h"#include "gtest/gtest.h"#include "source_base/module_out/filename.h"#include "source_base/parallel_grid.h"#include "source_cell/klist.h"#include "source_cell/unitcell.h"#include "source_estate/module_charge/charge.h"#include "source_estate/module_charge/chg_parallel.h"#include "source_estate/module_charge/chg_symm.h"#include "source_hamilt/module_xc/xc_functional.h"#include "source_io/module_parameter/parameter.h"#include "source_io/module_wf/read_wf2rho_pw.h"#include "source_io/module_wf/write_wfc_pw.h"#include "source_psi/psi.h"#include "mpi.h"#include "source_base/module_parallel/para_mpi_func.h"#include "source_base/module_parallel/para_world.h"#include "source_base/parallel_global.h"#include "source_basis/module_pw/test/test_tool.h"Classes | |
| class | TestParameters |
| Friend helper to mutate PARAM private members in unit tests. More... | |
| class | ReadWfcRhoTest |
Namespaces | |
| namespace | module_charge |
| Charge-density symmetrization free functions. | |
Functions | |
| void | world_barrier () |
| Collectively synchronize the world communicator without direct MPI. | |
| void | module_charge::cal_rhog_symm (const int &spin_now, const Charge &CHR, const ModulePW::PW_Basis *pw, ModuleSymmetry::Symmetry &symm) |
| Symmetrize one spin channel of the charge density. | |
| void | cal_ik2iktot (std::vector< int > &ik2iktot, const int &nks, const int &nkstot) |
| TEST_F (ReadWfcRhoTest, ReadWfcRho) | |
| TEST_F (ReadWfcRhoTest, WriteWfcAppendMode) | |
| int | main (int argc, char **argv) |
| void cal_ik2iktot | ( | std::vector< int > & | ik2iktot, |
| const int & | nks, | ||
| const int & | nkstot ) |
| int main | ( | int | argc, |
| char ** | argv ) |
| TEST_F | ( | ReadWfcRhoTest | , |
| ReadWfcRho | ) |
| TEST_F | ( | ReadWfcRhoTest | , |
| WriteWfcAppendMode | ) |
| void world_barrier | ( | ) |
Collectively synchronize the world communicator without direct MPI.
Governance rule 9 forbids calling MPI routines directly, so the tests go through the guarded Parallel wrappers; the helper is a no-op in serial builds.