Skip to content

Commit 54ad81c

Browse files
author
wenfei-li
committed
gint gamma : fix timer in cal_force
1 parent 635c18f commit 54ad81c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

source/src_lcao/gint_gamma_fvl.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ void Gint_Gamma::cal_force(double*** DM_in, const double*const vlocal,
1313
ModuleBase::matrix& force, ModuleBase::matrix& stress,
1414
const bool is_force, const bool is_stress)
1515
{
16-
ModuleBase::TITLE("Grid_Integral","cal_force_new");
17-
ModuleBase::timer::tick("Gint_Gamma","cal_force_new");
18-
if(!is_force && !is_stress) return;
16+
ModuleBase::TITLE("Grid_Integral","cal_force");
17+
ModuleBase::timer::tick("Gint_Gamma","cal_force");
18+
if(!is_force && !is_stress)
19+
{
20+
ModuleBase::timer::tick("Gint_Gamma","cal_force");
21+
return;
22+
}
1923
this->max_size = GlobalC::GridT.max_atom;
2024

2125
if(max_size)
@@ -137,7 +141,7 @@ void Gint_Gamma::cal_force(double*** DM_in, const double*const vlocal,
137141
}//max_size
138142

139143

140-
ModuleBase::timer::tick("Gint_Gamma","cal_force_new");
144+
ModuleBase::timer::tick("Gint_Gamma","cal_force");
141145
}
142146

143147
void Gint_Gamma::cal_meshball_force(

0 commit comments

Comments
 (0)