Skip to content

Commit 5c04f9a

Browse files
committed
fix build bug in cuda
1 parent 11a8ff7 commit 5c04f9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/module_hamilt_lcao/module_deltaspin/cal_mw_from_lambda.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void spinconstrain::SpinConstrain<std::complex<double>>::cal_mw_from_lambda(int
252252
hamilt::Hamilt<std::complex<double>, base_device::DEVICE_GPU>* hamilt_t = static_cast<hamilt::Hamilt<std::complex<double>, base_device::DEVICE_GPU>*>(this->p_hamilt);
253253
auto* onsite_p = projectors::OnsiteProjector<double, base_device::DEVICE_GPU>::get_instance();
254254
nbands = psi_t->get_nbands();
255-
npol = psi_t->npol;
255+
npol = psi_t->get_npol();
256256
nkb = onsite_p->get_tot_nproj();
257257
nk = psi_t->get_nk();
258258
nh_iat = &onsite_p->get_nh(0);
@@ -454,7 +454,7 @@ void spinconstrain::SpinConstrain<std::complex<double>>::update_psi_charge(const
454454
hamilt::Hamilt<std::complex<double>, base_device::DEVICE_GPU>* hamilt_t = static_cast<hamilt::Hamilt<std::complex<double>, base_device::DEVICE_GPU>*>(this->p_hamilt);
455455
auto* onsite_p = projectors::OnsiteProjector<double, base_device::DEVICE_GPU>::get_instance();
456456
nbands = psi_t->get_nbands();
457-
npol = psi_t->npol;
457+
npol = psi_t->get_npol();
458458
nkb = onsite_p->get_tot_nproj();
459459
nk = psi_t->get_nk();
460460
nh_iat = &onsite_p->get_nh(0);

0 commit comments

Comments
 (0)