Skip to content

Commit f0ceca8

Browse files
committed
fix timer in functions
1 parent f747833 commit f0ceca8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

source/source_cell/read_stru.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ bool unitcell::check_tau(const Atom* atoms,
4141
GlobalV::ofs_warning << " type:" << atoms[T1].label << " atom " << I1 + 1 << std::endl;
4242
GlobalV::ofs_warning << " type:" << atoms[T2].label << " atom " << I2 + 1 << std::endl;
4343
GlobalV::ofs_warning << " distance = " << norm << " Bohr" << std::endl;
44+
ModuleBase::timer::end("UnitCell","check_tau");
4445
return false;
4546
}
4647
}

source/source_estate/module_charge/charge_extra.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ void Charge_Extra::extrapolate_charge(
109109
{
110110
sf->setup(&ucell, *Pgrid, chr->rhopw);
111111
ofs_running << " charge density from previous step !" << std::endl;
112+
ModuleBase::timer::end("Charge_Extra", "extrapolate_charge");
112113
return;
113114
}
114115

source/source_hsolver/diago_iter_assist.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ void DiagoIterAssist<T, Device>::diag_subspace_init(hamilt::Hamilt<T, Device>* p
205205
}
206206
en[iband] = 0.0;
207207
}
208+
ModuleBase::timer::end("DiagoIterAssist", "diag_subspace_init");
208209
return;
209210
}
210211

0 commit comments

Comments
 (0)