Skip to content

Commit a6b96af

Browse files
init_mixing before beforescf()
1 parent e555490 commit a6b96af

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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

0 commit comments

Comments
 (0)