@@ -155,13 +155,13 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
155155 double * data = nullptr ;
156156 if (PARAM.inp .dm_to_rho )
157157 {
158- data = this ->chr -> rho [is];
159- this ->pw_rhod ->real2recip (this ->chr -> rho [is], this ->chr -> rhog [is]);
158+ data = this ->chr . rho [is];
159+ this ->pw_rhod ->real2recip (this ->chr . rho [is], this ->chr . rhog [is]);
160160 }
161161 else
162162 {
163- data = this ->chr -> rho_save [is];
164- this ->pw_rhod ->real2recip (this ->chr -> rho_save [is], this ->chr -> rhog_save [is]);
163+ data = this ->chr . rho_save [is];
164+ this ->pw_rhod ->real2recip (this ->chr . rho_save [is], this ->chr . rhog_save [is]);
165165 }
166166 std::string fn =PARAM.globalv .global_out_dir + " /SPIN" + std::to_string (is + 1 ) + " _CHG.cube" ;
167167 ModuleIO::write_vdata_palgrid (Pgrid,
@@ -178,7 +178,7 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
178178 {
179179 fn =PARAM.globalv .global_out_dir + " /SPIN" + std::to_string (is + 1 ) + " _TAU.cube" ;
180180 ModuleIO::write_vdata_palgrid (Pgrid,
181- this ->chr -> kin_r_save [is],
181+ this ->chr . kin_r_save [is],
182182 is,
183183 PARAM.inp .nspin ,
184184 istep,
@@ -219,7 +219,7 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
219219 fn,
220220 istep,
221221 this ->pw_rhod ,
222- this ->chr ,
222+ & this ->chr ,
223223 &(ucell),
224224 this ->pelec ->pot ->get_fixed_v (),
225225 this ->solvent );
@@ -228,11 +228,11 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
228228 // 6) write ELF
229229 if (PARAM.inp .out_elf [0 ] > 0 )
230230 {
231- this ->chr -> cal_elf = true ;
231+ this ->chr . cal_elf = true ;
232232 Symmetry_rho srho;
233233 for (int is = 0 ; is < PARAM.inp .nspin ; is++)
234234 {
235- srho.begin (is, *( this ->chr ) , this ->pw_rhod , ucell.symm );
235+ srho.begin (is, this ->chr , this ->pw_rhod , ucell.symm );
236236 }
237237
238238 std::string out_dir =PARAM.globalv .global_out_dir ;
@@ -244,8 +244,8 @@ void ESolver_FP::after_scf(UnitCell& ucell, const int istep, const bool conv_eso
244244 out_dir,
245245 istep,
246246 PARAM.inp .nspin ,
247- this ->chr -> rho ,
248- this ->chr -> kin_r ,
247+ this ->chr . rho ,
248+ this ->chr . kin_r ,
249249 this ->pw_rhod ,
250250 this ->Pgrid ,
251251 &(ucell),
@@ -294,7 +294,7 @@ void ESolver_FP::before_scf(UnitCell& ucell, const int istep)
294294 this ->CE .update_all_dis (ucell);
295295 this ->CE .extrapolate_charge (&(this ->Pgrid ),
296296 ucell,
297- this ->chr ,
297+ & this ->chr ,
298298 &(this ->sf ),
299299 GlobalV::ofs_running,
300300 GlobalV::ofs_warning);
@@ -329,7 +329,7 @@ void ESolver_FP::before_scf(UnitCell& ucell, const int istep)
329329 std::stringstream ss;
330330 ss << PARAM.globalv .global_out_dir << " SPIN" << is + 1 << " _CHG_INI.cube" ;
331331 ModuleIO::write_vdata_palgrid (this ->Pgrid ,
332- this ->chr -> rho [is],
332+ this ->chr . rho [is],
333333 is,
334334 PARAM.inp .nspin ,
335335 istep,
@@ -370,8 +370,8 @@ void ESolver_FP::iter_finish(UnitCell& ucell, const int istep, int& iter, bool&
370370 if (iter % PARAM.inp .out_freq_elec == 0 || iter == PARAM.inp .scf_nmax || conv_esolver)
371371 {
372372 std::complex <double >** rhog_tot
373- = (PARAM.inp .dm_to_rho ) ? this ->chr -> rhog : this ->chr -> rhog_save ;
374- double ** rhor_tot = (PARAM.inp .dm_to_rho ) ? this ->chr -> rho : this ->chr -> rho_save ;
373+ = (PARAM.inp .dm_to_rho ) ? this ->chr . rhog : this ->chr . rhog_save ;
374+ double ** rhor_tot = (PARAM.inp .dm_to_rho ) ? this ->chr . rho : this ->chr . rho_save ;
375375 for (int is = 0 ; is < PARAM.inp .nspin ; is++)
376376 {
377377 this ->pw_rhod ->real2recip (rhor_tot[is], rhog_tot[is]);
@@ -388,12 +388,12 @@ void ESolver_FP::iter_finish(UnitCell& ucell, const int istep, int& iter, bool&
388388
389389 if (XC_Functional::get_ked_flag ())
390390 {
391- std::vector<std::complex <double >> kin_g_space (PARAM.inp .nspin * this ->chr -> ngmc , {0.0 , 0.0 });
391+ std::vector<std::complex <double >> kin_g_space (PARAM.inp .nspin * this ->chr . ngmc , {0.0 , 0.0 });
392392 std::vector<std::complex <double >*> kin_g;
393393 for (int is = 0 ; is < PARAM.inp .nspin ; is++)
394394 {
395- kin_g.push_back (kin_g_space.data () + is * this ->chr -> ngmc );
396- this ->pw_rhod ->real2recip (this ->chr -> kin_r_save [is], kin_g[is]);
395+ kin_g.push_back (kin_g_space.data () + is * this ->chr . ngmc );
396+ this ->pw_rhod ->real2recip (this ->chr . kin_r_save [is], kin_g[is]);
397397 }
398398 ModuleIO::write_rhog (PARAM.globalv .global_out_dir + PARAM.inp .suffix + " -TAU-DENSITY.restart" ,
399399 PARAM.globalv .gamma_only_pw || PARAM.globalv .gamma_only_local ,
0 commit comments