Skip to content

Commit 3b598c7

Browse files
committed
fix wrong logic of atomic+random
1 parent 93d32b1 commit 3b598c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_psi/psi_init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void PSIInit<T, Device>::prepare_init(const int& random_seed)
5353
this->psi_initer = std::unique_ptr<psi_initializer<T>>(new psi_initializer_random<T>());
5454
}
5555
else if (this->init_wfc == "atomic"
56-
|| (this->init_wfc == "atomic+random" && this->ucell.natomwfc != PARAM.inp.nbands))
56+
|| (this->init_wfc == "atomic+random" && this->ucell.natomwfc > PARAM.inp.nbands))
5757
{
5858
this->psi_initer = std::unique_ptr<psi_initializer<T>>(new psi_initializer_atomic<T>());
5959
}

0 commit comments

Comments
 (0)