@@ -247,6 +247,7 @@ template <typename T, typename Device>
247247void ESolver_KS_PW<T, Device>::before_scf(UnitCell& ucell, const int istep)
248248{
249249 ModuleBase::TITLE (" ESolver_KS_PW" , " before_scf" );
250+ ModuleBase::timer::tick (" ESolver_KS_PW" , " before_scf" );
250251
251252 // ! 1) call before_scf() of ESolver_KS
252253 ESolver_KS<T, Device>::before_scf (ucell, istep);
@@ -427,6 +428,8 @@ void ESolver_KS_PW<T, Device>::before_scf(UnitCell& ucell, const int istep)
427428 this ->already_initpsi = true ;
428429 }
429430 }
431+
432+ ModuleBase::timer::tick (" ESolver_KS_PW" , " before_scf" );
430433}
431434
432435template <typename T, typename Device>
@@ -647,6 +650,9 @@ void ESolver_KS_PW<T, Device>::iter_finish(UnitCell& ucell, const int istep, int
647650template <typename T, typename Device>
648651void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep)
649652{
653+ ModuleBase::TITLE (" ESolver_KS_PW" , " after_scf" );
654+ ModuleBase::timer::tick (" ESolver_KS_PW" , " after_scf" );
655+
650656 // 1) calculate the kinetic energy density tau, sunliang 2024-09-18
651657 if (PARAM.inp .out_elf [0 ] > 0 )
652658 {
@@ -741,6 +747,8 @@ void ESolver_KS_PW<T, Device>::after_scf(UnitCell& ucell, const int istep)
741747 auto * onsite_p = projectors::OnsiteProjector<double , Device>::get_instance ();
742748 onsite_p->cal_occupations (reinterpret_cast <psi::Psi<std::complex <double >, Device>*>(this ->kspw_psi ), this ->pelec ->wg );
743749 }
750+
751+ ModuleBase::timer::tick (" ESolver_KS_PW" , " after_scf" );
744752}
745753
746754template <typename T, typename Device>
0 commit comments