Skip to content

Commit a3817e4

Browse files
committed
fix bug
1 parent 3096085 commit a3817e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hamilt_pw/hamilt_pwdft/operator_pw/velocity_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void Velocity::act
4848
) const
4949
{
5050
ModuleBase::timer::tick("Operator", "Velocity");
51-
const int npw = psi_in->get_current_nbas();
51+
const int npw = psi_in->get_ngk(this->ik);
5252
const int max_npw = psi_in->get_nbasis() / psi_in->npol;
5353
const int npol = psi_in->npol;
5454
const std::complex<double>* tmpsi_in = psi0;

0 commit comments

Comments
 (0)