@@ -626,7 +626,7 @@ void ESolver_KS<T, Device>::runner(const int istep, UnitCell& ucell)
626626 {
627627 dkin = p_chgmix->get_dkin (pelec->charge , PARAM.inp .nelec );
628628 }
629- this ->print_iter ( iter, drho, dkin, duration, diag_ethr);
629+ this ->pelec -> print_etot ( this -> conv_esolver , iter, drho, dkin, duration, PARAM. inp . printe , diag_ethr);
630630
631631 // 12) Json, need to be moved to somewhere else
632632#ifdef __RAPIDJSON
@@ -653,23 +653,12 @@ void ESolver_KS<T, Device>::runner(const int istep, UnitCell& ucell)
653653 }
654654 } // end scf iterations
655655 std::cout << " >> Leave SCF iteration.\n * * * * * *" << std::endl;
656- #ifdef __RAPIDJSON
657- // 14) add Json of efermi energy converge
658- Json::add_output_efermi_converge (this ->pelec ->eferm .ef * ModuleBase::Ry_to_eV, this ->conv_esolver );
659- #endif // __RAPIDJSON
660656
661657 // 15) after scf
662658 ModuleBase::timer::tick (this ->classname , " after_scf" );
663659 this ->after_scf (istep);
664660 ModuleBase::timer::tick (this ->classname , " after_scf" );
665661
666- // 16) Json again
667- #ifdef __RAPIDJSON
668- // add nkstot,nkstot_ibz to output json
669- int Jnkstot = this ->pelec ->klist ->get_nkstot ();
670- Json::add_nkstot (Jnkstot);
671- #endif // __RAPIDJSON
672-
673662 ModuleBase::timer::tick (this ->classname , " runner" );
674663 return ;
675664};
@@ -703,40 +692,6 @@ void ESolver_KS<T, Device>::after_scf(const int istep)
703692 }
704693}
705694
706- // ------------------------------------------------------------------------------
707- // ! the 8th function of ESolver_KS: print_iter
708- // ! mohan add 2024-05-12
709- // ------------------------------------------------------------------------------
710- template <typename T, typename Device>
711- void ESolver_KS<T, Device>::print_iter(const int iter,
712- const double drho,
713- const double dkin,
714- const double duration,
715- const double ethr)
716- {
717- this ->pelec ->print_etot (this ->conv_esolver , iter, drho, dkin, duration, PARAM.inp .printe , ethr);
718- }
719-
720- // ------------------------------------------------------------------------------
721- // ! the 10th function of ESolver_KS: getnieter
722- // ! mohan add 2024-05-12
723- // ------------------------------------------------------------------------------
724- template <typename T, typename Device>
725- int ESolver_KS<T, Device>::get_niter()
726- {
727- return this ->niter ;
728- }
729-
730- // ------------------------------------------------------------------------------
731- // ! the 11th function of ESolver_KS: get_maxniter
732- // ! tqzhao add 2024-05-15
733- // ------------------------------------------------------------------------------
734- template <typename T, typename Device>
735- int ESolver_KS<T, Device>::get_maxniter()
736- {
737- return this ->maxniter ;
738- }
739-
740695// ------------------------------------------------------------------------------
741696// ! the 16th-20th functions of ESolver_KS
742697// ! mohan add 2024-05-12
0 commit comments