Skip to content

Commit 588a335

Browse files
committed
update get_ngk func
1 parent 444f21e commit 588a335

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source/module_psi/psi.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,10 +484,7 @@ int Psi<T, Device>::get_current_nbas() const
484484
template <typename T, typename Device>
485485
const int& Psi<T, Device>::get_ngk(const int ik_in) const
486486
{
487-
if (!this->ngk)
488-
{
489-
return this->nbasis;
490-
}
487+
assert(this->ngk != nullptr);
491488
return this->ngk[ik_in];
492489
}
493490

0 commit comments

Comments
 (0)