Skip to content

Commit fb5beba

Browse files
authored
Fix: bug of cal_ux (#5165)
* Fix bug of cal_ux * update results
1 parent ca5cc95 commit fb5beba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

source/module_esolver/esolver_ks_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void ESolver_KS_PW<T, Device>::before_scf(const int istep)
213213

214214
//! cal_ux should be called before init_scf because
215215
//! the direction of ux is used in noncoline_rho
216-
if (PARAM.inp.nspin == 4 && PARAM.globalv.domag)
216+
if (PARAM.inp.nspin == 4)
217217
{
218218
GlobalC::ucell.cal_ux();
219219
}

source/module_esolver/lcao_before_scf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void ESolver_KS_LCAO<TK, TR>::beforesolver(const int istep)
165165
// cal_ux should be called before init_scf because
166166
// the direction of ux is used in noncoline_rho
167167
//=========================================================
168-
if (PARAM.inp.nspin == 4 && PARAM.globalv.domag)
168+
if (PARAM.inp.nspin == 4)
169169
{
170170
GlobalC::ucell.cal_ux();
171171
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
etotref -1668.616835067548
2-
etotperatomref -834.3084175338
3-
totaltimeref 6.35
1+
etotref -1668.616833271131
2+
etotperatomref -834.3084166356
3+
totaltimeref 5.15

0 commit comments

Comments
 (0)