@@ -44,27 +44,31 @@ void ESolver_FP::before_all_runners(BaseCell& basecell, const Input_para& inp)
4444 ModuleBase::TITLE (" ESolver_FP" , " before_all_runners" );
4545
4646 // ! 1) read pseudopotentials
47- const std::string pseudo_dir = this ->inp_ ->pseudo_dir ;
4847 const std::string global_out_dir = PARAM .globalv .global_out_dir ;
49- const bool out_element_info = this ->inp_ ->out_element_info ;
50- const std::string dft_functional = this ->inp_ ->dft_functional ;
51- const bool lspinorb = this ->inp_ ->lspinorb ;
52- const double pseudo_rcut = this ->inp_ ->pseudo_rcut ;
53- const double soc_lambda = this ->inp_ ->soc_lambda ;
54- const int nspin = this ->inp_ ->nspin ;
5548 const int npol = PARAM .globalv .npol ;
56- const std::string basis_type = this ->inp_ ->basis_type ;
57- const std::string esolver_type = this ->inp_ ->esolver_type ;
58- const std::string init_wfc = this ->inp_ ->init_wfc ;
59- const int nbands = this ->inp_ ->nbands ;
6049 const bool two_fermi = PARAM .globalv .two_fermi ;
61- const double nelec_delta = this ->inp_ ->nelec_delta ;
62- const std::string smearing_method = this ->inp_ ->smearing_method ;
63- const std::string ks_solver = this ->inp_ ->ks_solver ;
64- const int bndpar = this ->inp_ ->bndpar ;
65- const double nelec = this ->inp_ ->nelec ;
66- const double nupdown = this ->inp_ ->nupdown ;
67- auto atoms_info = unitcell::read_pseudo (GlobalV::ofs_running, ucell, pseudo_dir, global_out_dir, out_element_info, dft_functional, lspinorb, pseudo_rcut, soc_lambda, nspin, npol, basis_type, esolver_type, init_wfc, nbands, two_fermi, nelec_delta, smearing_method, ks_solver, bndpar, nelec, nupdown);
50+ auto atoms_info = unitcell::read_pseudo (GlobalV::ofs_running,
51+ ucell,
52+ this ->inp_ ->pseudo_dir ,
53+ global_out_dir,
54+ this ->inp_ ->out_element_info ,
55+ this ->inp_ ->dft_functional ,
56+ this ->inp_ ->lspinorb ,
57+ this ->inp_ ->pseudo_rcut ,
58+ this ->inp_ ->soc_lambda ,
59+ this ->inp_ ->nspin ,
60+ npol,
61+ this ->inp_ ->basis_type ,
62+ this ->inp_ ->esolver_type ,
63+ this ->inp_ ->init_wfc ,
64+ this ->inp_ ->nbands ,
65+ two_fermi,
66+ this ->inp_ ->nelec_delta ,
67+ this ->inp_ ->smearing_method ,
68+ this ->inp_ ->ks_solver ,
69+ this ->inp_ ->bndpar ,
70+ this ->inp_ ->nelec ,
71+ this ->inp_ ->nupdown );
6872 elecstate::ParamUpdater::update_from_atoms_info (atoms_info);
6973
7074 // ! 2) setup pw_rho, pw_rhod, pw_big, sf, and read_pseudopotentials
@@ -92,9 +96,8 @@ void ESolver_FP::before_all_runners(BaseCell& basecell, const Input_para& inp)
9296 const bool use_ibz = !inp.berry_phase && ModuleSymmetry::Symmetry::symm_flag != -1 ;
9397 const bool gamma_only_local = PARAM .globalv .gamma_only_local ;
9498 const double kspacing[3 ] = {this ->inp_ ->kspacing [0 ], this ->inp_ ->kspacing [1 ], this ->inp_ ->kspacing [2 ]};
95- const std::string kmesh_type = this ->inp_ ->kmesh_type ;
9699 const double koffset[3 ] = {this ->inp_ ->koffset [0 ], this ->inp_ ->koffset [1 ], this ->inp_ ->koffset [2 ]};
97- this ->kv .set (ucell, ucell.symm , inp.kpoint_file , inp.nspin , ucell.G , ucell.latvec , GlobalV::ofs_running, use_ibz, global_out_dir, gamma_only_local, kspacing, kmesh_type, koffset);
100+ this ->kv .set (ucell, ucell.symm , inp.kpoint_file , inp.nspin , ucell.G , ucell.latvec , GlobalV::ofs_running, use_ibz, global_out_dir, gamma_only_local, kspacing, this -> inp_ -> kmesh_type , koffset);
98101 ModuleBase::GlobalFunc::DONE (GlobalV::ofs_running, " INIT K-POINTS" );
99102
100103 // ! 8) print information
0 commit comments