Skip to content

Commit e8c1abd

Browse files
committed
fix bug
1 parent 405a741 commit e8c1abd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

source/module_psi/psi.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,8 @@ template <typename T, typename Device> Psi<T, Device>::Psi(const int nk_in, cons
5353
{
5454
this->k_first = k_first_in;
5555

56-
if (nk_in == 1)
57-
{
58-
this->ngk = nullptr;
59-
}
60-
else
61-
{
62-
this->ngk = ngk_in;
63-
}
56+
57+
this->ngk = ngk_in;
6458

6559
this->current_b = 0;
6660
this->current_k = 0;

0 commit comments

Comments
 (0)