Skip to content

Commit 2ef7e30

Browse files
committed
fix timer in functions
1 parent cdacbac commit 2ef7e30

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

source/source_io/module_current/td_current_io_comm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ void ModuleIO::set_rR_from_hR(const UnitCell& ucell,
193193
}
194194
}
195195
}
196+
ModuleBase::timer::end("ModuleIO", "set_rR_from_hR");
196197
ModuleBase::TITLE("ModuleIO", "set_rR_from_sR");
197198
}
198199
template <typename TR>
@@ -801,6 +802,7 @@ void ModuleIO::cal_current_comm_k(const UnitCell& ucell,
801802
delete[] velocity_basis_k[ik][i_alpha];
802803
}
803804

805+
ModuleBase::timer::end("ModuleIO", "cal_current_exx");
804806
ModuleBase::TITLE("ModuleIO", "cal_current_exx");
805807
}
806808
template <typename TR>

source/source_lcao/module_operator_lcao/deepks_lcao.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ void hamilt::DeePKS<hamilt::OperatorLCAO<TK, TR>>::calculate_HR()
214214
ModuleBase::timer::start("DeePKS", "calculate_HR");
215215
if (this->V_delta_R->size_atom_pairs() == 0)
216216
{
217+
ModuleBase::timer::end("DeePKS", "calculate_HR");
217218
return;
218219
}
219220

source/source_lcao/module_ri/gaussian_abfs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ auto Gaussian_Abfs::get_dVq(const int& lp_max,
160160
gaunt,
161161
func_DPcal_d_lattice_sum);
162162

163-
ModuleBase::timer::start("Gaussian_Abfs", "get_Vq");
163+
ModuleBase::timer::end("Gaussian_Abfs", "get_dVq");
164164
return res;
165165
}
166166

source/source_lcao/spar_u.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ void sparse_format::cal_HR_dftu(
120120
HR_tmp = nullptr;
121121
SR_tmp = nullptr;
122122

123-
ModuleBase::timer::start("sparse_format","cal_HR_dftu_sparse");
124-
125-
return;
123+
ModuleBase::timer::end("sparse_format","cal_HR_dftu");
126124
}
127125

128126

@@ -241,7 +239,5 @@ void sparse_format::cal_HR_dftu_soc(
241239
HR_soc_tmp = nullptr;
242240
SR_soc_tmp = nullptr;
243241

244-
ModuleBase::timer::start("sparse_format","calculat_HR_dftu_soc");
245-
246-
return;
242+
ModuleBase::timer::end("sparse_format","cal_HR_dftu_soc");
247243
}

0 commit comments

Comments
 (0)