Skip to content

Commit 724ead1

Browse files
committed
change ucell in read_wfc_to_rho_test.cpp
1 parent f93413d commit 724ead1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/module_io/test/read_wfc_to_rho_test.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ int K_Vectors::get_ik_global(const int& ik, const int& nkstot)
9191

9292
namespace GlobalC
9393
{
94-
UnitCell ucell;
9594
Parallel_Grid Pgrid;
9695
} // namespace GlobalC
9796

@@ -109,7 +108,7 @@ class ReadWfcRhoTest : public ::testing::Test
109108
K_Vectors* kv = nullptr;
110109
psi::Psi<std::complex<double>>* psi = nullptr;
111110
Charge chg;
112-
111+
ModuleSymmetry::Symmetry symm;
113112
virtual void SetUp()
114113
{
115114
wfcpw = new ModulePW::PW_Basis_K;
@@ -231,7 +230,7 @@ TEST_F(ReadWfcRhoTest, ReadWfcRho)
231230
ModuleIO::write_wfc_pw("WAVEFUNC", *psi, *kv, wfcpw);
232231

233232
// Read the wave functions to charge density
234-
ModuleIO::read_wfc_to_rho(wfcpw, GlobalC::ucell.symm, nkstot, kv->isk, chg);
233+
ModuleIO::read_wfc_to_rho(wfcpw, symm, nkstot, kv->isk, chg);
235234

236235
// compare the charge density
237236
for (int ir = 0; ir < rhopw->nrxx; ++ir)

0 commit comments

Comments
 (0)