Skip to content

Commit 302a1cd

Browse files
committed
update PW_DIAG_NMAX for nscf
1 parent bda3d33 commit 302a1cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/module_esolver/esolver_ks_pw.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ void ESolver_KS_PW<T, Device>::hamilt2density_single(const int istep, const int
353353

354354
hsolver::DiagoIterAssist<T, Device>::SCF_ITER = iter;
355355
hsolver::DiagoIterAssist<T, Device>::PW_DIAG_THR = ethr;
356-
hsolver::DiagoIterAssist<T, Device>::PW_DIAG_NMAX = PARAM.inp.pw_diag_nmax;
356+
if (PARAM.inp.calculation != "nscf")
357+
{
358+
hsolver::DiagoIterAssist<T, Device>::PW_DIAG_NMAX = PARAM.inp.pw_diag_nmax;
359+
}
357360
bool skip_charge = PARAM.inp.calculation == "nscf" ? true : false;
358361

359362
hsolver::HSolverPW<T, Device> hsolver_pw_obj(this->pw_wfc,

0 commit comments

Comments
 (0)