@@ -36,39 +36,41 @@ class Veff<OperatorLCAO<TK, TR>> : public OperatorLCAO<TK, TR>
3636 * @param GK_in: the pointer of Gint_k object, used for grid integration
3737 */
3838 Veff<OperatorLCAO<TK, TR>>(Gint_k* GK_in,
39- HS_Matrix_K<TK>* hsk_in,
40- const std::vector<ModuleBase::Vector3<double >>& kvec_d_in,
41- elecstate::Potential* pot_in,
42- hamilt::HContainer<TR>* hR_in,
43- const UnitCell* ucell_in,
44- const std::vector<double >& orb_cutoff,
45- Grid_Driver* GridD_in)
39+ HS_Matrix_K<TK>* hsk_in,
40+ const std::vector<ModuleBase::Vector3<double >>& kvec_d_in,
41+ elecstate::Potential* pot_in,
42+ hamilt::HContainer<TR>* hR_in,
43+ const UnitCell* ucell_in,
44+ const std::vector<double >& orb_cutoff,
45+ Grid_Driver* GridD_in,
46+ const int & nspin)
4647 : GK(GK_in), orb_cutoff_(orb_cutoff), pot(pot_in), ucell(ucell_in),
4748 gd (GridD_in), OperatorLCAO<TK, TR>(hsk_in, kvec_d_in, hR_in)
4849 {
4950 this ->cal_type = calculation_type::lcao_gint;
5051
5152 this ->initialize_HR (ucell_in, GridD_in);
52- GK_in->initialize_pvpR (*ucell_in, GridD_in);
53+ GK_in->initialize_pvpR (*ucell_in, GridD_in, nspin );
5354 }
5455 /* *
5556 * @brief Construct a new Veff object for Gamma-only calculation
5657 * @param GG_in: the pointer of Gint_Gamma object, used for grid integration
5758 */
5859 Veff<OperatorLCAO<TK, TR>>(Gint_Gamma* GG_in,
59- HS_Matrix_K<TK>* hsk_in,
60- const std::vector<ModuleBase::Vector3<double >>& kvec_d_in,
61- elecstate::Potential* pot_in,
62- hamilt::HContainer<TR>* hR_in,
63- const UnitCell* ucell_in,
64- const std::vector<double >& orb_cutoff,
65- Grid_Driver* GridD_in)
60+ HS_Matrix_K<TK>* hsk_in,
61+ const std::vector<ModuleBase::Vector3<double >>& kvec_d_in,
62+ elecstate::Potential* pot_in,
63+ hamilt::HContainer<TR>* hR_in,
64+ const UnitCell* ucell_in,
65+ const std::vector<double >& orb_cutoff,
66+ Grid_Driver* GridD_in,
67+ const int & nspin)
6668 : GG(GG_in), orb_cutoff_(orb_cutoff), pot(pot_in), OperatorLCAO<TK, TR>(hsk_in, kvec_d_in, hR_in)
6769 {
6870 this ->cal_type = calculation_type::lcao_gint;
6971 this ->initialize_HR (ucell_in, GridD_in);
7072
71- GG_in->initialize_pvpR (*ucell_in, GridD_in);
73+ GG_in->initialize_pvpR (*ucell_in, GridD_in, nspin );
7274 }
7375
7476 ~Veff<OperatorLCAO<TK, TR>>(){};
0 commit comments