Skip to content

Commit b7f110e

Browse files
author
abacus_fixer
committed
fix bug in lr-tddft
1 parent 3553688 commit b7f110e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source/source_esolver/esolver_lr_lcao_tddft.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ void ModuleESolver::ESolver_LR<T, TR>::initialize_from_ks_(ModuleESolver::ESolve
332332
if (xc_kernel == "hf") { exx_info.info_global.ccp_type = Conv_Coulomb_Pot_K::Ccp_Type::Hf; }
333333
else if (xc_kernel == "hse") { exx_info.info_global.ccp_type = Conv_Coulomb_Pot_K::Ccp_Type::Erfc; }
334334
exx_info.sync_from_global();
335+
// populate ABFs/JLE file lists from UnitCell; keep in sync with Exx_NAO::init
336+
exx_info.info_ri.files_abfs = ucell.abfs_orbital_files;
337+
exx_info.info_opt_abfs.files_abfs = ucell.abfs_orbital_files;
338+
exx_info.info_opt_abfs.files_jles = ucell.jle_orbital_files;
335339
this->exx_lri = std::make_shared<Exx_LRI<T>>(exx_info.info_ri);
336340
this->exx_lri->init(MPI_COMM_WORLD, ucell,this->kv, ks_sol.orb_);
337341
this->exx_lri->cal_exx_ions(ucell,this->inp_->out_ri_cv);
@@ -475,6 +479,11 @@ void ModuleESolver::ESolver_LR<T, TR>::initialize_from_unitcell_(UnitCell& ucell
475479
// set ccp_type according to the xc_kernel
476480
if (xc_kernel == "hf") { exx_info.info_global.ccp_type = Conv_Coulomb_Pot_K::Ccp_Type::Hf; }
477481
else if (xc_kernel == "hse") { exx_info.info_global.ccp_type = Conv_Coulomb_Pot_K::Ccp_Type::Erfc; }
482+
exx_info.sync_from_global();
483+
// populate ABFs/JLE file lists from UnitCell; keep in sync with Exx_NAO::init
484+
exx_info.info_ri.files_abfs = ucell.abfs_orbital_files;
485+
exx_info.info_opt_abfs.files_abfs = ucell.abfs_orbital_files;
486+
exx_info.info_opt_abfs.files_jles = ucell.jle_orbital_files;
478487
this->exx_lri = std::make_shared<Exx_LRI<T>>(exx_info.info_ri);
479488
this->exx_lri->init(MPI_COMM_WORLD, ucell,this->kv, orb);
480489
this->exx_lri->cal_exx_ions(ucell,this->inp_->out_ri_cv);

0 commit comments

Comments
 (0)