Skip to content

Commit ce1fecf

Browse files
Fix: init_mixing before beforescf (#5683)
* init_mixing before beforescf() * update the result.ref in 384_NO_GO_S1_HSE_loop0_PU
1 parent d1ec60e commit ce1fecf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

source/module_esolver/esolver_ks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ void ESolver_KS<T, Device>::before_all_runners(UnitCell& ucell, const Input_para
109109
PARAM.inp.mixing_gg0_min,
110110
PARAM.inp.mixing_angle,
111111
PARAM.inp.mixing_dmr);
112+
p_chgmix->init_mixing();
112113

113114
/// PAW Section
114115
#ifdef USE_PAW

source/module_esolver/esolver_ks_lcao.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ void ESolver_KS_LCAO<TK, TR>::iter_init(UnitCell& ucell, const int istep, const
511511

512512
if (iter == 1)
513513
{
514-
this->p_chgmix->init_mixing(); // init mixing
514+
this->p_chgmix->mix_reset(); // init mixing
515515
this->p_chgmix->mixing_restart_step = PARAM.inp.scf_nmax + 1;
516516
this->p_chgmix->mixing_restart_count = 0;
517517
// this output will be removed once the feeature is stable
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
etotref -465.9048077363179
2-
etotperatomref -155.3016025788
3-
totaltimeref 49.53
1+
etotref -465.9048164318562
2+
etotperatomref -155.3016054773
3+
totaltimeref 8.29

0 commit comments

Comments
 (0)