Skip to content

Commit 444f21e

Browse files
committed
fix unit bug
1 parent f4f958c commit 444f21e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/module_lr/utils/lr_util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace LR_Util
104104

105105
/// psi(nk=1, nbands=nb, nk * nbasis) -> psi(nb, nk, nbasis) without memory copy
106106
template<typename T, typename Device>
107-
psi::Psi<T, Device> c(const psi::Psi<T, Device>& psi_kfirst, int nk_in, int nbasis_in)
107+
psi::Psi<T, Device> k1_to_bfirst_wrapper(const psi::Psi<T, Device>& psi_kfirst, int nk_in, int nbasis_in)
108108
{
109109
assert(psi_kfirst.get_nk() == 1);
110110
assert(nk_in * nbasis_in == psi_kfirst.get_nbasis());

source/module_psi/psi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Psi<T, Device>::Psi(T* psi_pointer,
7373
{
7474

7575
// Currently this function only supports nk_in == 1 when called within diagH_subspace_init.
76-
assert(nk_in == 1);
76+
// assert(nk_in == 1);
7777

7878
this->k_first = k_first_in;
7979
this->npol = PARAM.globalv.npol;

0 commit comments

Comments
 (0)