Skip to content

Commit ed7387e

Browse files
committed
fix 186_PW_SKG_ALL bug
1 parent 7f66c7d commit ed7387e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_psi/psi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Psi<T, Device>::Psi(const int nk_in,
134134
this->allocate_inside = true;
135135

136136
this->ngk = nullptr;
137-
assert(nk_in > 0 && nbd_in > 0 && nbs_in > 0);
137+
assert(nk_in > 0 && nbd_in >= 0 && nbs_in > 0);
138138
resize_memory_op()(this->ctx, this->psi, nk_in * static_cast<std::size_t>(nbd_in) * nbs_in, "no_record");
139139

140140
this->nk = nk_in;

0 commit comments

Comments
 (0)