@@ -64,7 +64,7 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(UnitCell& ucell, const Input_pa
6464 inp.lcao_dk , inp.lcao_dr , inp.lcao_rmax , ucell, two_center_bundle_, orb_);
6565
6666 // 4) setup EXX calculations
67- if (PARAM. inp .calculation == " gen_opt_abfs" )
67+ if (inp.calculation == " gen_opt_abfs" )
6868 {
6969#ifdef __EXX
7070 Exx_Opt_Orb exx_opt_orb;
@@ -76,14 +76,14 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(UnitCell& ucell, const Input_pa
7676 }
7777
7878 // 5) init electronic wave function psi
79- Setup_Psi<TK>::allocate_psi (this ->psi , this ->kv , this ->pv , PARAM. inp );
79+ Setup_Psi<TK>::allocate_psi (this ->psi , this ->kv , this ->pv , inp);
8080
8181 // ! read psi from file
8282 if (inp.init_wfc == " file" && inp.esolver_type != " tddft" )
8383 {
8484 if (!ModuleIO::read_wfc_nao (PARAM.globalv .global_readin_dir ,
8585 this ->pv , *this ->psi , this ->pelec ->ekb , this ->pelec ->wg , this ->kv .ik2iktot ,
86- this ->kv .get_nkstot (), PARAM. inp .nspin ))
86+ this ->kv .get_nkstot (), inp.nspin ))
8787 {
8888 ModuleBase::WARNING_QUIT (" ESolver_KS_LCAO" , " read electronic wave functions failed" );
8989 }
@@ -94,7 +94,7 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(UnitCell& ucell, const Input_pa
9494 dynamic_cast <elecstate::ElecStateLCAO<TK>*>(this ->pelec )->init_DM (&this ->kv , &(this ->pv ), inp.nspin );
9595
9696 // 8) init exact exchange calculations
97- this ->exx_nao .before_runner (ucell, this ->kv , this ->orb_ , this ->pv , PARAM. inp );
97+ this ->exx_nao .before_runner (ucell, this ->kv , this ->orb_ , this ->pv , inp);
9898
9999 // 9) initialize DFT+U
100100 if (inp.dft_plus_u )
@@ -120,7 +120,7 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(UnitCell& ucell, const Input_pa
120120 }
121121
122122 // 13) init deepks
123- this ->deepks .before_runner (ucell, this ->kv .get_nks (), this ->orb_ , this ->pv , PARAM. inp );
123+ this ->deepks .before_runner (ucell, this ->kv .get_nks (), this ->orb_ , this ->pv , inp);
124124
125125 // 14) set occupations, tddft does not need to set occupations in the first scf
126126 if (inp.ocp && inp.esolver_type != " tddft" )
0 commit comments