@@ -55,8 +55,8 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(BaseCell& basecell, const Input
5555 ModuleBase::TITLE (" ESolver_KS_LCAO" , " before_all_runners" );
5656 ModuleBase::timer::start (" ESolver_KS_LCAO" , " before_all_runners" );
5757
58- // 0) init EXX - moved from constructor to ensure exx_info_-> info_global is already set
59- this ->exx_nao .init (ucell, * this ->exx_info_ );
58+ // 0) init EXX - moved from constructor to ensure exx_info_. info_global is already set
59+ this ->exx_nao .init (ucell, this ->exx_info_ );
6060
6161 // 1) before_all_runners in ESolver_KS
6262 ESolver_KS::before_all_runners (ucell, inp);
@@ -78,7 +78,7 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(BaseCell& basecell, const Input
7878 {
7979#ifdef __EXX
8080 Exx_Opt_Orb exx_opt_orb;
81- exx_opt_orb.generate_matrix (exx_info_-> info_opt_abfs , this ->kv , ucell, this ->orb_ );
81+ exx_opt_orb.generate_matrix (exx_info_. info_opt_abfs , this ->kv , ucell, this ->orb_ );
8282#else
8383 ModuleBase::WARNING_QUIT (" ESolver_KS_LCAO::before_all_runners" , " calculation=gen_opt_abfs must compile __EXX" );
8484#endif
@@ -90,7 +90,7 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(BaseCell& basecell, const Input
9090
9191 LCAO_domain::set_pot<TK >(ucell, this ->kv , this ->sf , *this ->pw_rho , *this ->pw_rhod ,
9292 this ->pelec , this ->orb_ , this ->pv , this ->locpp , this ->dftu ,
93- this ->solvent , this ->exx_nao , this ->deepks , inp, * this ->exx_info_ );
93+ this ->solvent , this ->exx_nao , this ->deepks , inp, this ->exx_info_ );
9494
9595 // ! if kpar is not divisible by nks, print a warning
9696 ModuleIO::print_kpar (this ->kv .get_nks (), PARAM .globalv .kpar_lcao );
@@ -100,7 +100,7 @@ void ESolver_KS_LCAO<TK, TR>::before_all_runners(BaseCell& basecell, const Input
100100 {
101101 rdmft_solver.init (this ->pv , ucell,
102102 this ->gd , this ->kv , *(this ->pelec ), this ->orb_ ,
103- two_center_bundle_, inp.dft_functional , inp.rdmft_power_alpha , * this ->exx_info_ );
103+ two_center_bundle_, inp.dft_functional , inp.rdmft_power_alpha , this ->exx_info_ );
104104 }
105105
106106 ModuleBase::timer::end (" ESolver_KS_LCAO" , " before_all_runners" );
@@ -153,7 +153,7 @@ void ESolver_KS_LCAO<TK, TR>::before_scf(UnitCell& ucell, const int istep)
153153 {
154154 this ->p_hamilt = new hamilt::HamiltLCAO<TK , TR >(
155155 ucell, this ->gd , &this ->pv , this ->pelec ->pot , this ->kv ,
156- two_center_bundle_, orb_, this ->dmat .dm , &this ->dftu , this ->deepks , istep, exx_nao, * this ->exx_info_ );
156+ two_center_bundle_, orb_, this ->dmat .dm , &this ->dftu , this ->deepks , istep, exx_nao, this ->exx_info_ );
157157 }
158158
159159 // 9) for each ionic step, the overlap <phi|alpha> must be rebuilt
@@ -170,7 +170,7 @@ void ESolver_KS_LCAO<TK, TR>::before_scf(UnitCell& ucell, const int istep)
170170 init_deltaspin_lcao<TK >(ucell, PARAM .inp , &(this ->pv ), this ->kv , this ->p_hamilt , this ->psi , this ->dmat .dm , this ->pelec );
171171
172172 // 11) set xc type before the first cal of xc in pelec->init_scf, Peize Lin add 2016-12-03
173- this ->exx_nao .before_scf (ucell, this ->kv , orb_, this ->p_chgmix , istep, PARAM .inp , * this ->exx_info_ );
173+ this ->exx_nao .before_scf (ucell, this ->kv , orb_, this ->p_chgmix , istep, PARAM .inp , this ->exx_info_ );
174174
175175 // 12) initalize DM(R), which has the same size with Hamiltonian(R)
176176 auto * hamilt_lcao = dynamic_cast <hamilt::HamiltLCAO<TK , TR >*>(this ->p_hamilt );
@@ -254,7 +254,7 @@ void ESolver_KS_LCAO<TK, TR>::cal_force(BaseCell& basecell, ModuleBase::matrix&
254254 two_center_bundle_, orb_, force, this ->scs ,
255255 this ->locpp , this ->sf , this ->kv ,
256256 this ->pw_rho , this ->solvent , this ->dftu , this ->deepks ,
257- this ->exx_nao , &ucell.symm , * this ->exx_info_ , PARAM .inp .td_stype ,
257+ this ->exx_nao , &ucell.symm , this ->exx_info_ , PARAM .inp .td_stype ,
258258 static_cast <hamilt::Hamilt<TK >*>(this ->p_hamilt ));
259259
260260 // delete RA after cal_force
@@ -309,7 +309,7 @@ void ESolver_KS_LCAO<TK, TR>::after_all_runners(BaseCell& basecell)
309309 this ->gd , this ->psi , this ->chr , hamilt_lcao,
310310 this ->two_center_bundle_ ,
311311 this ->orb_ , this ->pw_rho , this ->pw_rhod ,
312- this ->sf , this ->locpp .vloc , this ->exx_nao , * this ->exx_info_ , this ->solvent );
312+ this ->sf , this ->locpp .vloc , this ->exx_nao , this ->exx_info_ , this ->solvent );
313313
314314
315315#ifdef __MPI
@@ -358,11 +358,11 @@ void ESolver_KS_LCAO<TK, TR>::iter_init(UnitCell& ucell, const int istep, const
358358 {
359359 int exx_two_level_step = 0 ;
360360#ifdef __EXX
361- if (exx_info_-> info_global .cal_exx )
361+ if (exx_info_. info_global .cal_exx )
362362 {
363363 // the following steps are only needed in the first outer exx loop
364364 exx_two_level_step
365- = exx_info_-> info_ri .real_number ?
365+ = exx_info_. info_ri .real_number ?
366366 this ->exx_nao .exd ->two_level_step : this ->exx_nao .exc ->two_level_step ;
367367 }
368368#endif
@@ -373,7 +373,7 @@ void ESolver_KS_LCAO<TK, TR>::iter_init(UnitCell& ucell, const int istep, const
373373 // calculate exact-exchange
374374 if (PARAM .inp .calculation != " nscf" )
375375 {
376- if (exx_info_-> info_ri .real_number )
376+ if (exx_info_. info_ri .real_number )
377377 {
378378 this ->exx_nao .exd ->exx_eachiterinit (istep, ucell, *this ->dmat .dm , this ->kv , iter);
379379 }
@@ -467,7 +467,7 @@ void ESolver_KS_LCAO<TK, TR>::hamilt2rho_single(UnitCell& ucell, int istep, int
467467#ifdef __EXX
468468 if (PARAM .inp .calculation != " nscf" )
469469 {
470- if (exx_info_-> info_ri .real_number )
470+ if (exx_info_. info_ri .real_number )
471471 {
472472 this ->exx_nao .exd ->exx_hamilt2rho (*this ->pelec , this ->pv , iter);
473473 }
@@ -537,7 +537,7 @@ void ESolver_KS_LCAO<TK, TR>::iter_finish(UnitCell& ucell, const int istep, int&
537537 ModuleIO::ctrl_iter_lcao<TK , TR >(ucell, PARAM .inp , this ->kv , this ->pelec , *this ->dmat .dm ,
538538 this ->pv , this ->gd , this ->psi , this ->chr , this ->p_chgmix ,
539539 hamilt_lcao, this ->orb_ , this ->deepks ,
540- this ->exx_nao , * this ->exx_info_ , iter, istep, conv_esolver, this ->scf_ene_thr );
540+ this ->exx_nao , this ->exx_info_ , iter, istep, conv_esolver, this ->scf_ene_thr );
541541}
542542
543543template <typename TK , typename TR >
@@ -567,7 +567,7 @@ void ESolver_KS_LCAO<TK, TR>::after_scf(UnitCell& ucell, const int istep, const
567567 this ->gd , this ->psi , hamilt_lcao, this ->dftu , this ->two_center_bundle_ ,
568568 this ->orb_ , this ->pw_wfc , this ->pw_rho , this ->pw_big , this ->sf ,
569569 this ->pw_rhod , this ->locpp .vloc , this ->solvent ,
570- this ->rdmft_solver , this ->deepks , this ->exx_nao , * this ->exx_info_ ,
570+ this ->rdmft_solver , this ->deepks , this ->exx_nao , this ->exx_info_ ,
571571 this ->conv_esolver , this ->scf_nmax_flag , istep);
572572
573573 // ! 3) Clean up RA, which is used to serach for adjacent atoms
0 commit comments