Skip to content

Commit e87c8b9

Browse files
committed
update ld
1 parent 72e7023 commit e87c8b9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

source/source_esolver/esolver_double_xc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void ESolver_DoubleXC<TK, TR>::iter_finish(UnitCell& ucell, const int istep, int
235235
#ifdef __MLALGO
236236
// ---------- output tot and precalc ----------
237237
hamilt::HamiltLCAO<TK, TR>* p_ham_deepks = dynamic_cast<hamilt::HamiltLCAO<TK, TR>*>(this->p_hamilt);
238-
std::shared_ptr<LCAO_Deepks<TK>> ld_shared_ptr(&this->ld, [](LCAO_Deepks<TK>*) {});
238+
std::shared_ptr<LCAO_Deepks<TK>> ld_shared_ptr(&this->deepks.ld, [](LCAO_Deepks<TK>*) {});
239239
LCAO_Deepks_Interface<TK, TR> deepks_interface(ld_shared_ptr);
240240

241241
deepks_interface.out_deepks_labels(this->pelec->f_en.etot,
@@ -409,7 +409,7 @@ void ESolver_DoubleXC<TK, TR>::cal_force(UnitCell& ucell, ModuleBase::matrix& fo
409409
this->pw_rho,
410410
this->solvent,
411411
#ifdef __MLALGO
412-
this->ld,
412+
this->deepks.ld,
413413
"base",
414414
#endif
415415
this->exx_nao,

source/source_esolver/esolver_ks_lcao.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void ESolver_KS_LCAO<TK, TR>::cal_force(UnitCell& ucell, ModuleBase::matrix& for
224224
this->pw_rho,
225225
this->solvent,
226226
#ifdef __MLALGO
227-
this->ld,
227+
this->deepks.ld,
228228
"tot",
229229
#endif
230230
this->exx_nao,
@@ -413,7 +413,7 @@ void ESolver_KS_LCAO<TK, TR>::iter_init(UnitCell& ucell, const int istep, const
413413
// if (iter == 1 && istep == 0)
414414
// {
415415
// // initialize DMR
416-
// this->ld.init_DMR(ucell, orb_, this->pv, this->gd);
416+
// this->deepks.ld.init_DMR(ucell, orb_, this->pv, this->gd);
417417
// }
418418
#endif
419419

@@ -593,7 +593,7 @@ void ESolver_KS_LCAO<TK, TR>::iter_finish(UnitCell& ucell, const int istep, int&
593593
this->pv, this->gd, this->psi, this->chr, this->p_chgmix,
594594
hamilt_lcao, this->orb_,
595595
#ifdef __MLALGO
596-
this->ld,
596+
this->deepks.ld,
597597
#endif
598598
exx_nao, iter, istep, conv_esolver, this->scf_ene_thr);
599599

source/source_esolver/lcao_before_scf.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ void ESolver_KS_LCAO<TK, TR>::before_scf(UnitCell& ucell, const int istep)
147147
{
148148
const Parallel_Orbitals* pv = &this->pv;
149149
// allocate <phi(0)|alpha(R)>, phialpha is different every ion step, so it is allocated here
150-
DeePKS_domain::allocate_phialpha(PARAM.inp.cal_force, ucell, orb_, this->gd, pv, this->ld.phialpha);
150+
DeePKS_domain::allocate_phialpha(PARAM.inp.cal_force, ucell, orb_, this->gd, pv, this->deepks.ld.phialpha);
151151
// build and save <phi(0)|alpha(R)> at beginning
152152
DeePKS_domain::build_phialpha(PARAM.inp.cal_force, ucell, orb_, this->gd,
153-
pv, *(two_center_bundle_.overlap_orb_alpha), this->ld.phialpha);
153+
pv, *(two_center_bundle_.overlap_orb_alpha), this->deepks.ld.phialpha);
154154

155155
if (PARAM.inp.deepks_out_unittest)
156156
{
157157
DeePKS_domain::check_phialpha(PARAM.inp.cal_force, ucell, orb_,
158-
this->gd, pv, this->ld.phialpha, GlobalV::MY_RANK);
158+
this->gd, pv, this->deepks.ld.phialpha, GlobalV::MY_RANK);
159159
}
160160
}
161161
#endif
@@ -198,7 +198,7 @@ void ESolver_KS_LCAO<TK, TR>::before_scf(UnitCell& ucell, const int istep)
198198

199199
#ifdef __MLALGO
200200
// 14) initialize DMR of DeePKS
201-
this->ld.init_DMR(ucell, orb_, this->pv, this->gd);
201+
this->deepks.ld.init_DMR(ucell, orb_, this->pv, this->gd);
202202
#endif
203203

204204
// 15) two cases are considered:

source/source_esolver/lcao_others.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,15 @@ void ESolver_KS_LCAO<TK, TR>::others(UnitCell& ucell, const int istep)
249249
{
250250
const Parallel_Orbitals* pv = &this->pv;
251251
// allocate <phi(0)|alpha(R)>, phialpha is different every ion step, so it is allocated here
252-
DeePKS_domain::allocate_phialpha(PARAM.inp.cal_force, ucell, orb_, this->gd, pv, this->ld.phialpha);
252+
DeePKS_domain::allocate_phialpha(PARAM.inp.cal_force, ucell, orb_, this->gd, pv, this->deepks.ld.phialpha);
253253
// build and save <phi(0)|alpha(R)> at beginning
254254
DeePKS_domain::build_phialpha(PARAM.inp.cal_force,
255255
ucell,
256256
orb_,
257257
this->gd,
258258
pv,
259259
*(two_center_bundle_.overlap_orb_alpha),
260-
this->ld.phialpha);
260+
this->deepks.ld.phialpha);
261261

262262
if (PARAM.inp.deepks_out_unittest)
263263
{
@@ -266,7 +266,7 @@ void ESolver_KS_LCAO<TK, TR>::others(UnitCell& ucell, const int istep)
266266
orb_,
267267
this->gd,
268268
pv,
269-
this->ld.phialpha,
269+
this->deepks.ld.phialpha,
270270
GlobalV::MY_RANK);
271271
}
272272
}

0 commit comments

Comments
 (0)