Skip to content

Commit 9a3a9f0

Browse files
committed
fix bug
1 parent 1a9aea9 commit 9a3a9f0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/module_hamilt_general/operator.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ typename Operator<T, Device>::hpsi_info Operator<T, Device>::hPsi(hpsi_info& inp
6666
// a "psi" with the bands of needed range
6767
psi::Psi<T, Device> psi_wrapper(const_cast<T*>(tmpsi_in), 1, nbands, psi_input->get_nbasis(), true);
6868

69-
// std::cout << "op->ik : " << op->ik << std::endl;
70-
// std::cout << "psi_input->get_ngk(op->ik) : " << psi_input->get_ngk(op->ik) << std::endl;
71-
// std::cout << "psi_input->get_current_nbas() : " << psi_input->get_current_nbas() << std::endl;
69+
std::cout << "op->ik : " << op->ik << std::endl;
70+
std::cout << "psi_input->get_ngk(op->ik) : " << psi_input->get_ngk(op->ik) << std::endl;
71+
std::cout << "psi_input->get_current_nbas() : " << psi_input->get_current_nbas() << std::endl;
72+
73+
std::cout << "psi_input->ik : " << psi_input->get_nk() << std::endl;
7274

7375

7476

@@ -78,7 +80,7 @@ typename Operator<T, Device>::hpsi_info Operator<T, Device>::hPsi(hpsi_info& inp
7880
op->act(psi_wrapper, *this->hpsi, nbands);
7981
break;
8082
default:
81-
op->act(nbands, psi_input->get_nbasis(), psi_input->npol, tmpsi_in, this->hpsi->get_pointer(), psi_input->get_current_nbas(), is_first_node);
83+
op->act(nbands, psi_input->get_nbasis(), psi_input->npol, tmpsi_in, this->hpsi->get_pointer(), psi_input->get_current_nbas() / psi_input->npol, is_first_node);
8284
break;
8385
}
8486
};

0 commit comments

Comments
 (0)