@@ -86,8 +86,8 @@ inline int cal_nupdown_form_occ(const ModuleBase::matrix& wg)
8686template <typename T, typename TR>
8787void LR::ESolver_LR<T, TR>::parameter_check()const
8888{
89- std::set<std::string> lr_solvers = { " dav" , " lapack" , " spectrum" , " dav_subspace" , " cg" };
90- std::set<std::string> xc_kernels = { " rpa" , " lda" , " pwlda" , " pbe" , " hf" , " hse" };
89+ const std::set<std::string> lr_solvers = { " dav" , " lapack" , " spectrum" , " dav_subspace" , " cg" };
90+ const std::set<std::string> xc_kernels = { " rpa" , " lda" , " pwlda" , " pbe" , " hf" , " hse" };
9191 if (lr_solvers.find (this ->input .lr_solver ) == lr_solvers.end ()) {
9292 throw std::invalid_argument (" ESolver_LR: unknown type of lr_solver" );
9393}
@@ -471,7 +471,7 @@ void LR::ESolver_LR<T, TR>::runner(int istep, UnitCell& cell)
471471 // solve the Casida equation
472472 LR::HSolver::solve (hlr, this ->X [is].template data <T>(), nloc_per_band, nstates,
473473 this ->pelec ->ekb .c + is * nstates, this ->input .lr_solver , this ->input .lr_thr /* ,
474- !std::set<std::string>({ "hf", "hse" }).count(this->xc_kernel)*/ ); // whether the kernel is Hermitian
474+ !const std::set<std::string>({ "hf", "hse" }).count(this->xc_kernel)*/ ); // whether the kernel is Hermitian
475475 if (input.out_wfc_lr ) { write_states (spin_types[is], this ->pelec ->ekb .c + is * nstates, this ->X [is].template data <T>(), nloc_per_band, nstates); }
476476 }
477477 }
0 commit comments