We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a47da8e commit 11a8ff7Copy full SHA for 11a8ff7
source/module_hamilt_lcao/module_deltaspin/cal_mw.cpp
@@ -112,7 +112,7 @@ void spinconstrain::SpinConstrain<std::complex<double>>::cal_mi_pw()
112
psi::Psi<std::complex<double>, base_device::DEVICE_GPU>* psi_t = static_cast<psi::Psi<std::complex<double>, base_device::DEVICE_GPU>*>(this->psi);
113
const int nbands = psi_t->get_nbands();
114
const int nks = psi_t->get_nk();
115
- const int npol = psi_t->npol;
+ const int npol = psi_t->get_npol();
116
for(int ik = 0; ik < nks; ik++)
117
{
118
psi_t->fix_k(ik);
0 commit comments