Skip to content

Commit 16687c3

Browse files
committed
fix bug
1 parent af1b7bc commit 16687c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

source/module_hamilt_general/operator.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ typename Operator<T, Device>::hpsi_info Operator<T, Device>::hPsi(hpsi_info& inp
7474

7575
// std::cout << "psi_input->ik : " << psi_input->get_nk() << std::endl;
7676

77+
// std::cout << "psi_input->npol : " << psi_input->npol << std::endl;
78+
79+
80+
7781
switch (op->get_act_type())
7882
{
7983
case 2:
@@ -85,7 +89,10 @@ typename Operator<T, Device>::hpsi_info Operator<T, Device>::hPsi(hpsi_info& inp
8589
psi_input->npol,
8690
tmpsi_in,
8791
this->hpsi->get_pointer(),
88-
psi_input->get_current_nbas() / psi_input->npol,
92+
psi_input->get_ngk(op->ik),
93+
// 0,
94+
// psi_input->get_current_nbas(),
95+
// psi_input->get_current_nbas() / psi_input->npol,
8996
is_first_node);
9097
break;
9198
}

0 commit comments

Comments
 (0)