Skip to content

Commit 6c40de7

Browse files
committed
Update parameter name of spsi_func interface
1 parent 861c6bf commit 6c40de7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_hsolver/hsolver_pw.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,13 +514,13 @@ void HSolverPW<T, Device>::hamiltSolvePsiK(hamilt::Hamilt<T, Device>* hm,
514514
/// spsi(X, SX, nrow, npw, nbands)
515515
/// nrow is leading dimension of spsi, npw is leading dimension of psi, nbands is number of vecs
516516
auto spsi_func = [hm](const T* psi_in, T* spsi_out,
517-
const int nrow, // dimension of spsi: nbands * nrow
518-
const int npw, // number of plane waves
519-
const int nbands // number of bands
517+
const int ldSpsi, // dimension of spsi: nbands * nrow
518+
const int ldPsi, // number of plane waves
519+
const int nvec // number of bands
520520
){
521521
ModuleBase::timer::tick("David", "spsi_func");
522522
// sPsi determines S=I or not by GlobalV::use_uspp inside
523-
hm->sPsi(psi_in, spsi_out, nrow, npw, nbands);
523+
hm->sPsi(psi_in, spsi_out, ldSpsi, ldPsi, nvec);
524524
ModuleBase::timer::tick("David", "spsi_func");
525525
};
526526

0 commit comments

Comments
 (0)