Skip to content

Commit 11a8ff7

Browse files
committed
fix cuda build bug
1 parent a47da8e commit 11a8ff7

File tree

1 file changed

+1
-1
lines changed
  • source/module_hamilt_lcao/module_deltaspin

1 file changed

+1
-1
lines changed

source/module_hamilt_lcao/module_deltaspin/cal_mw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void spinconstrain::SpinConstrain<std::complex<double>>::cal_mi_pw()
112112
psi::Psi<std::complex<double>, base_device::DEVICE_GPU>* psi_t = static_cast<psi::Psi<std::complex<double>, base_device::DEVICE_GPU>*>(this->psi);
113113
const int nbands = psi_t->get_nbands();
114114
const int nks = psi_t->get_nk();
115-
const int npol = psi_t->npol;
115+
const int npol = psi_t->get_npol();
116116
for(int ik = 0; ik < nks; ik++)
117117
{
118118
psi_t->fix_k(ik);

0 commit comments

Comments
 (0)