Skip to content

Commit a94e0f0

Browse files
committed
update read_wf2rho_pw
1 parent acf5132 commit a94e0f0

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source/module_io/test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ add_test(NAME read_wfc_pw_test_parallel
171171
)
172172

173173
AddTest(
174-
TARGET read_wfc_to_rho_test
174+
TARGET read_wf2rho_pw_test
175175
LIBS parameter base ${math_libs} device planewave psi
176-
SOURCES read_wfc_to_rho_test.cpp ../read_wfc_pw.cpp ../read_wf2rho_pw.cpp ../binstream.cpp ../../module_basis/module_pw/test/test_tool.cpp
176+
SOURCES read_wf2rho_pw_test.cpp ../read_wfc_pw.cpp ../read_wf2rho_pw.cpp ../binstream.cpp ../../module_basis/module_pw/test/test_tool.cpp
177177
../../module_elecstate/module_charge/charge_mpi.cpp ../write_wfc_pw.cpp
178178
)
179179

180-
add_test(NAME read_wfc_to_rho_parallel
181-
COMMAND mpirun -np 4 ./read_wfc_to_rho_test
180+
add_test(NAME read_wf2rho_pw_parallel
181+
COMMAND mpirun -np 4 ./read_wf2rho_pw_test
182182
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
183183
)
184184

source/module_io/test/read_wfc_to_rho_test.cpp renamed to source/module_io/test/read_wf2rho_pw_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "module_elecstate/module_charge/symmetry_rho.h"
1111
#include "module_hamilt_general/module_xc/xc_functional.h"
1212
#include "module_hamilt_pw/hamilt_pwdft/parallel_grid.h"
13-
#include "module_io/read_wfc_to_rho.h"
13+
#include "module_io/read_wf2rho_pw.h"
1414
#include "module_io/write_wfc_pw.h"
1515
#include "module_parameter/parameter.h"
1616
#include "module_psi/psi.h"
@@ -87,7 +87,7 @@ Parallel_Grid Pgrid;
8787
/**
8888
* - Tested Functions:
8989
* - write_wfc_pw()
90-
* - read_wfc_to_rho()
90+
* - read_wf2rho_pw()
9191
*/
9292

9393
class ReadWfcRhoTest : public ::testing::Test
@@ -222,7 +222,7 @@ TEST_F(ReadWfcRhoTest, ReadWfcRho)
222222
ModuleIO::write_wfc_pw("WAVEFUNC", *psi, *kv, wfcpw);
223223

224224
// Read the wave functions to charge density
225-
ModuleIO::read_wfc_to_rho(wfcpw, symm, kv->ik2iktot.data(), nkstot, kv->isk, chg);
225+
ModuleIO::read_wf2rho_pw(wfcpw, symm, kv->ik2iktot.data(), nkstot, kv->isk, chg);
226226

227227
// compare the charge density
228228
for (int ir = 0; ir < rhopw->nrxx; ++ir)
@@ -292,4 +292,4 @@ int main(int argc, char** argv)
292292
finishmpi();
293293
#endif
294294
return result;
295-
}
295+
}

0 commit comments

Comments
 (0)