Skip to content

Commit 3656490

Browse files
committed
fix compilation error
1 parent d30c7d2 commit 3656490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/module_io/get_pchg_lcao.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void Get_pchg_lcao::begin(Gint_Gamma& gg,
7676
Gint_inout inout(rho, Gint_Tools::job_type::rho, nspin);
7777
gg.cal_gint(&inout);
7878
#else
79-
ModuleGint::cal_gint_rho(DM.get_DMR_vector(), PARAM.inp.nspin, rho);
79+
ModuleGint::cal_gint_rho(DM.get_DMR_vector(), nspin, rho);
8080
#endif
8181

8282
// A solution to replace the original implementation of the following code:
@@ -175,7 +175,7 @@ void Get_pchg_lcao::begin(Gint_k& gk,
175175
Gint_inout inout(rho, Gint_Tools::job_type::rho, nspin);
176176
gk.cal_gint(&inout);
177177
#else
178-
ModuleGint::cal_gint_rho(DM.get_DMR_vector(), PARAM.inp.nspin, rho);
178+
ModuleGint::cal_gint_rho(DM.get_DMR_vector(), nspin, rho);
179179
#endif
180180

181181

@@ -222,7 +222,7 @@ void Get_pchg_lcao::begin(Gint_k& gk,
222222
Gint_inout inout(rho, Gint_Tools::job_type::rho, nspin);
223223
gk.cal_gint(&inout);
224224
#else
225-
ModuleGint::cal_gint_rho(DM.get_DMR_vector(), PARAM.inp.nspin, rho);
225+
ModuleGint::cal_gint_rho(DM.get_DMR_vector(), nspin, rho);
226226
#endif
227227
// Using std::vector to replace the original double** rho_save
228228
std::vector<std::vector<double>> rho_save(nspin, std::vector<double>(rhopw_nrxx));

0 commit comments

Comments
 (0)