Skip to content

Commit

Permalink
Fix the issue of some timer instances not being closed, resulting i…
Browse files Browse the repository at this point in the history
…n incorrect time statistics (#4939)

* Fix timer Force_LCAO::allocate

* Delete timer cal_edm_2d
  • Loading branch information
AsTonyshment authored Aug 9, 2024
1 parent 0b247f3 commit 6321891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/module_hamilt_lcao/hamilt_lcaodft/FORCE_k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void Force_LCAO<std::complex<double>>::allocate(const Parallel_Orbitals& pv,
}
}

ModuleBase::timer::tick("Force_LCAO_k", "allocate_k");
ModuleBase::timer::tick("Force_LCAO", "allocate");
return;
}

Expand Down
3 changes: 1 addition & 2 deletions source/module_hamilt_lcao/hamilt_lcaodft/fedm_k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ void Force_LCAO<std::complex<double>>::cal_fedm(
edm.init_DMR(*ra, &ucell);
edm.cal_DMR();
edm.sum_DMR_spin();
//
ModuleBase::timer::tick("Force_LCAO_k", "cal_edm_2d");

//--------------------------------------------
// summation \sum_{i,j} E(i,j)*dS(i,j)
// BEGIN CALCULATION OF FORCE OF EACH ATOM
Expand Down

0 comments on commit 6321891

Please sign in to comment.