Skip to content

Commit b3f37e1

Browse files
dyzhengdyzheng
and
dyzheng
authored
Fix: wrong memory record in vkb (#4206)
Co-authored-by: dyzheng <[email protected]>
1 parent 898afb2 commit b3f37e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hamilt_pw/hamilt_pwdft/VNL_in_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void pseudopot_cell_vnl::init(const int ntype,
217217
if (nkb > 0 && allocate_vkb)
218218
{
219219
vkb.create(nkb, npwx);
220-
ModuleBase::Memory::record("VNL::vkb", nkb * npwx * sizeof(double));
220+
ModuleBase::Memory::record("VNL::vkb", nkb * npwx * sizeof(std::complex<double>));
221221
}
222222

223223
// this->nqx = 10000; // calculted in allocate_nlpot.f90

0 commit comments

Comments
 (0)