@@ -26,17 +26,10 @@ void Evolve_OFDFT::cal_Hpsi(elecstate::ElecState* pelec,
2626 this ->renormalize_psi (chr, pw_rho, psi_);
2727
2828 pelec->pot ->update_from_charge (&chr, &ucell); // Hartree + XC + external
29- <<<<<<< HEAD
3029 this ->cal_tf_potential (chr.rho , pw_rho, pelec->pot ->get_effective_v ()); // TF potential
3130 if (PARAM.inp .of_cd )
3231 {
3332 this ->cal_CD_potential (psi_, pw_rho, pelec->pot ->get_effective_v (), PARAM.inp .of_mCD_alpha ); // CD potential
34- =======
35- this ->cal_tf_potential (chr.rho , pw_rho, pelec->pot ->get_eff_v ()); // TF potential
36- if (PARAM.inp .of_cd )
37- {
38- this ->cal_CD_potential (psi_, pw_rho, pelec->pot ->get_eff_v (), PARAM.inp .of_mCD_alpha ); // CD potential
39- >>>>>>> cd4d234bc2ce329cfc85091fcdad56a4acafae94
4033 }
4134
4235#ifdef _OPENMP
@@ -179,7 +172,6 @@ void Evolve_OFDFT::cal_CD_potential(std::vector<std::complex<double>>& psi_,
179172#endif
180173 for (int is = 0 ; is < PARAM.inp .nspin ; ++is)
181174 {
182- <<<<<<< HEAD
183175 std::vector<std::complex <double >> recipCurrent_x (pw_rho->npw );
184176 std::vector<std::complex <double >> recipCurrent_y (pw_rho->npw );
185177 std::vector<std::complex <double >> recipCurrent_z (pw_rho->npw );
@@ -189,26 +181,11 @@ void Evolve_OFDFT::cal_CD_potential(std::vector<std::complex<double>>& psi_,
189181 std::vector<std::complex <double >> rCurrent_z (pw_rho->nrxx );
190182 std::vector<std::complex <double >> kF_r (pw_rho->nrxx );
191183 std::vector<std::complex <double >> rCDPotential (pw_rho->nrxx );
192- =======
193- std::complex <double > *recipCurrent_x=new std::complex <double >[pw_rho->npw ];
194- std::complex <double > *recipCurrent_y=new std::complex <double >[pw_rho->npw ];
195- std::complex <double > *recipCurrent_z=new std::complex <double >[pw_rho->npw ];
196- std::complex <double > *recipCDPotential=new std::complex <double >[pw_rho->npw ];
197- std::complex <double > *rCurrent_x=new std::complex <double >[pw_rho->nrxx ];
198- std::complex <double > *rCurrent_y=new std::complex <double >[pw_rho->nrxx ];
199- std::complex <double > *rCurrent_z=new std::complex <double >[pw_rho->nrxx ];
200- std::complex <double > *kF_r =new std::complex <double >[pw_rho->nrxx ];
201- std::complex <double > *rCDPotential=new std::complex <double >[pw_rho->nrxx ];
202- >>>>>>> cd4d234bc2ce329cfc85091fcdad56a4acafae94
203184 recipPhi[is] = new std::complex <double >[pw_rho->npw ];
204185
205186 for (int ir = 0 ; ir < pw_rho->nrxx ; ++ir)
206187 {
207- <<<<<<< HEAD
208188 kF_r [ir]=std::pow (3 *std::pow (ModuleBase::PI*std::abs (rPhi[is][ir]),2 ),1.0 /3.0 );
209- =======
210- kF_r [ir]=std::pow (3 *std::pow (ModuleBase::PI*std::abs (rPhi[is][ir]),2 ),1 /3 );
211- >>>>>>> cd4d234bc2ce329cfc85091fcdad56a4acafae94
212189 }
213190
214191 pw_rho->real2recip (rPhi[is], recipPhi[is]);
@@ -218,15 +195,9 @@ void Evolve_OFDFT::cal_CD_potential(std::vector<std::complex<double>>& psi_,
218195 recipCurrent_y[ik]=imag*pw_rho->gcar [ik].y *recipPhi[is][ik]* pw_rho->tpiba ;
219196 recipCurrent_z[ik]=imag*pw_rho->gcar [ik].z *recipPhi[is][ik]* pw_rho->tpiba ;
220197 }
221- <<<<<<< HEAD
222198 pw_rho->recip2real (recipCurrent_x.data (),rCurrent_x.data ());
223199 pw_rho->recip2real (recipCurrent_y.data (),rCurrent_y.data ());
224200 pw_rho->recip2real (recipCurrent_z.data (),rCurrent_z.data ());
225- =======
226- pw_rho->recip2real (recipCurrent_x,rCurrent_x);
227- pw_rho->recip2real (recipCurrent_y,rCurrent_y);
228- pw_rho->recip2real (recipCurrent_z,rCurrent_z);
229- >>>>>>> cd4d234bc2ce329cfc85091fcdad56a4acafae94
230201 for (int ir = 0 ; ir < pw_rho->nrxx ; ++ir)
231202 {
232203 rCurrent_x[ir]=std::imag (rCurrent_x[ir]*std::conj (rPhi[is][ir]));
@@ -333,7 +304,6 @@ void Evolve_OFDFT::propagate_psi_RK4(elecstate::ElecState* pelec,
333304 for (int is = 0 ; is < PARAM.inp .nspin ; ++is){
334305 for (int ir = 0 ; ir < pw_rho->nrxx ; ++ir)
335306 {
336- <<<<<<< HEAD
337307 K4[is * nrxx + ir]=-0.5 *K4[is * nrxx + ir]*dt*imag;
338308 pphi_[is * nrxx + ir]+=1.0 /6.0 *(K1[is * nrxx + ir]+2.0 *K2[is * nrxx + ir]+2.0 *K3[is * nrxx + ir]+K4[is * nrxx + ir]);
339309 }
@@ -410,14 +380,4 @@ void Evolve_OFDFT::propagate_psi_RK2(elecstate::ElecState* pelec,
410380 this ->renormalize_psi (chr, pw_rho, pphi_);
411381
412382 ModuleBase::timer::tick (" ESolver_OF_TDDFT" , " propagate_psi_RK2" );
413- =======
414- K4[is * nrxx + ir]=-1.0 *K4[is * nrxx + ir]*dt*imag;
415- pphi_[is * nrxx + ir]+=1.0 /6.0 *(K1[is * nrxx + ir]
416- +2.0 *K2[is * nrxx + ir]+2.0 *K3[is * nrxx + ir]
417- +K4[is * nrxx + ir]);
418- }
419- }
420-
421- ModuleBase::timer::tick (" ESolver_OF_TDDFT" , " propagte_psi" );
422- >>>>>>> cd4d234bc2ce329cfc85091fcdad56a4acafae94
423383}
0 commit comments