Skip to content

Commit 35d26d6

Browse files
committed
fix bug
1 parent 16687c3 commit 35d26d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/module_hamilt_general/operator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ typename Operator<T, Device>::hpsi_info Operator<T, Device>::hPsi(hpsi_info& inp
8989
psi_input->npol,
9090
tmpsi_in,
9191
this->hpsi->get_pointer(),
92-
psi_input->get_ngk(op->ik),
92+
// psi_input->get_ngk(op->ik),
9393
// 0,
94-
// psi_input->get_current_nbas(),
94+
psi_input->get_current_nbas(),
9595
// psi_input->get_current_nbas() / psi_input->npol,
9696
is_first_node);
9797
break;

source/module_hsolver/hsolver_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ void HSolverPW<T, Device>::hamiltSolvePsiK(hamilt::Hamilt<T, Device>* hm,
378378
ngk_vector[i] = ngk_pointer[i];
379379
}
380380

381-
const int cur_nbasis = psi.get_current_nbas();
381+
const int cur_nbasis = psi.get_ngk(psi.get_current_k());
382382

383383
if (this->method == "cg")
384384
{

0 commit comments

Comments
 (0)