Skip to content

Commit 44b2136

Browse files
author
dyzheng
committed
Fixed the bug in memory statistics
1 parent 52457bf commit 44b2136

File tree

1 file changed

+3
-2
lines changed
  • source/module_hamilt_lcao/module_gint

1 file changed

+3
-2
lines changed

source/module_hamilt_lcao/module_gint/gint.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ void Gint::initialize_pvpR(const UnitCell& ucell_in, const Grid_Driver* gd, cons
199199
} else {
200200
this->hRGintCd->insert_ijrs(this->gridt->get_ijr_info(), ucell_in, npol);
201201
this->hRGintCd->allocate(nullptr, true);
202+
ModuleBase::Memory::record("Gint::hRGintCd",
203+
this->hRGintCd->get_memory_size());
202204
for(int is = 0; is < nspin; is++) {
203205
this->hRGint_tmp[is]->insert_ijrs(this->gridt->get_ijr_info(), ucell_in);
204206
this->DMRGint[is]->insert_ijrs(this->gridt->get_ijr_info(), ucell_in);
@@ -208,8 +210,7 @@ void Gint::initialize_pvpR(const UnitCell& ucell_in, const Grid_Driver* gd, cons
208210
ModuleBase::Memory::record("Gint::hRGint_tmp",
209211
this->hRGint_tmp[0]->get_memory_size()*nspin);
210212
ModuleBase::Memory::record("Gint::DMRGint",
211-
this->DMRGint[0]->get_memory_size()
212-
* this->DMRGint.size()*nspin);
213+
this->DMRGint[0]->get_memory_size()*nspin);
213214
#ifdef __MPI
214215
this->DMRGint_full->insert_ijrs(this->gridt->get_ijr_info(), ucell_in, npol);
215216
this->DMRGint_full->allocate(nullptr, true);

0 commit comments

Comments
 (0)