Skip to content

Commit

Permalink
fix an illegal call of get_ngk()
Browse files Browse the repository at this point in the history
  • Loading branch information
maki49 committed Sep 1, 2023
1 parent 1779e38 commit da4aa52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/module_psi/psi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ template <typename T, typename Device> int Psi<T, Device>::get_current_nbas() co

template <typename T, typename Device> const int& Psi<T, Device>::get_ngk(const int ik_in) const
{
if (!this->ngk) return this->nbasis;
return this->ngk[ik_in];
}

Expand Down

0 comments on commit da4aa52

Please sign in to comment.