63 INTEGER :: ig_max = -1, ncall = -1, ncall_p(2) = -1, nbuffer = -1, n_simple_mix = -1, &
64 nskip_mixing = -1, p_metric_method = -1
65 INTEGER,
POINTER,
DIMENSION(:) :: ig_global_index => null()
66 LOGICAL :: gmix_p = .false.
67 LOGICAL,
POINTER,
DIMENSION(:) :: paw => null()
68 CHARACTER(len=15) :: iter_method =
""
69 REAL(kind=
dp) :: alpha = -1.0_dp, bconst = -1.0_dp, beta = -1.0_dp, broy_w0 = -1.0_dp, &
70 max_g2 = -1.0_dp, max_gvec_exp = -1.0_dp, pulay_alpha = -1.0_dp, &
71 pulay_beta = -1.0_dp, r_step = -1.0_dp, reg_par = -1.0_dp, &
72 sigma_max = -1.0_dp, wc = -1.0_dp, wmax = -1.0_dp, qm = -1.0_dp, &
73 qk = -1.0_dp, qkappa = -1.0_dp
75 REAL(kind=
dp) :: alpha_mag = -1.0_dp, beta_mag = -1.0_dp
76 REAL(kind=
dp),
DIMENSION(:),
POINTER :: p_metric => null()
77 REAL(kind=
dp),
DIMENSION(:),
POINTER :: kerker_factor => null()
78 REAL(kind=
dp),
DIMENSION(:),
POINTER :: kerker_factor_mag => null()
79 REAL(kind=
dp),
DIMENSION(:),
POINTER :: special_metric => null()
80 REAL(kind=
dp),
DIMENSION(:, :),
POINTER :: weight => null()
81 REAL(kind=
dp),
DIMENSION(:, :),
POINTER :: norm_res_buffer => null()
82 REAL(kind=
dp),
DIMENSION(:, :, :),
POINTER :: fmat => null(), gmat => null(), pulay_matrix => null(), smat => null()
84 INTEGER :: nat_local = -1, max_shell = -1
85 INTEGER :: tb_scc_mixer_memory = 0, tb_scc_mixer_natom = 0, &
86 tb_scc_mixer_ns = 0, tb_scc_mixer_step = 0
87 REAL(kind=
dp) :: tb_scc_mixer_error = 0.0_dp
88 REAL(kind=
dp),
DIMENSION(:, :, :),
POINTER :: acharge => null()
89 REAL(kind=
dp),
DIMENSION(:, :, :),
POINTER :: dacharge => null()
90 REAL(kind=
dp),
DIMENSION(:, :, :),
POINTER :: dfbroy => null()
91 REAL(kind=
dp),
DIMENSION(:, :, :),
POINTER :: ubroy => null()
92 REAL(kind=
dp),
DIMENSION(:, :),
POINTER :: abroy => null()
93 REAL(kind=
dp),
DIMENSION(:),
POINTER :: wbroy => null()
94 INTEGER,
DIMENSION(:),
POINTER :: atlist => null()
96 TYPE(
cp_1d_z_p_type),
DIMENSION(:),
POINTER :: last_res => null(), rhoin => null(), rhoin_old => null()
97 TYPE(
cp_1d_z_p_type),
DIMENSION(:, :),
POINTER :: delta_res => null(), u_vec => null(), z_vec => null()
98 TYPE(
cp_1d_z_p_type),
DIMENSION(:, :),
POINTER :: drho_buffer => null(), rhoin_buffer => null(), res_buffer => null()
100 TYPE(
rho_atom_coeff),
DIMENSION(:, :),
POINTER :: cpc_h_lastres => null(), cpc_s_lastres => null()
101 TYPE(
rho_atom_coeff),
DIMENSION(:, :),
POINTER :: cpc_h_in => null(), cpc_s_in => null()
102 TYPE(
rho_atom_coeff),
DIMENSION(:, :),
POINTER :: cpc_h_old => null(), cpc_s_old => null()
103 TYPE(
rho_atom_coeff),
DIMENSION(:, :, :),
POINTER :: cpc_h_in_buffer => null(), cpc_s_in_buffer => null()
104 TYPE(
rho_atom_coeff),
DIMENSION(:, :, :),
POINTER :: cpc_h_res_buffer => null(), cpc_s_res_buffer => null()
105 TYPE(
rho_atom_coeff),
DIMENSION(:, :, :),
POINTER :: dcpc_h_in => null(), dcpc_s_in => null()
107 CLASS(mixer_type),
ALLOCATABLE :: tb_scc_mixer
126 INTEGER,
INTENT(IN) :: mixing_method
127 REAL(
dp),
INTENT(IN) :: ecut
129 REAL(
dp) :: alpha, eps, gcut
131 mixing_store%nbuffer = 0
132 mixing_store%n_simple_mix = 0
133 mixing_store%ncall = 0
134 mixing_store%ncall_p = 0
135 mixing_store%alpha = 1.0_dp
136 mixing_store%pulay_beta = 1.0_dp
137 mixing_store%beta = 1.0_dp
138 mixing_store%alpha_mag = -1.0_dp
139 mixing_store%beta_mag = -1.0_dp
140 mixing_store%iter_method =
"NoMix"
141 mixing_store%max_g2 = 2._dp*ecut
142 mixing_store%gmix_p = .false.
143 mixing_store%tb_scc_mixer_error = 0.0_dp
144 mixing_store%tb_scc_mixer_memory = 0
145 mixing_store%tb_scc_mixer_natom = 0
146 mixing_store%tb_scc_mixer_ns = 0
147 mixing_store%tb_scc_mixer_step = 0
149 NULLIFY (mixing_store%p_metric)
150 NULLIFY (mixing_store%kerker_factor)
151 NULLIFY (mixing_store%kerker_factor_mag)
152 NULLIFY (mixing_store%special_metric)
153 NULLIFY (mixing_store%pulay_matrix)
154 NULLIFY (mixing_store%weight)
155 NULLIFY (mixing_store%fmat)
156 NULLIFY (mixing_store%gmat)
157 NULLIFY (mixing_store%smat)
158 NULLIFY (mixing_store%acharge)
159 NULLIFY (mixing_store%dacharge)
160 NULLIFY (mixing_store%dfbroy)
161 NULLIFY (mixing_store%ubroy)
162 NULLIFY (mixing_store%abroy)
163 NULLIFY (mixing_store%wbroy)
164 NULLIFY (mixing_store%atlist)
165 NULLIFY (mixing_store%last_res)
166 NULLIFY (mixing_store%rhoin)
167 NULLIFY (mixing_store%rhoin_old)
168 NULLIFY (mixing_store%delta_res)
169 NULLIFY (mixing_store%u_vec)
170 NULLIFY (mixing_store%z_vec)
171 NULLIFY (mixing_store%drho_buffer)
172 NULLIFY (mixing_store%rhoin_buffer)
173 NULLIFY (mixing_store%res_buffer)
174 NULLIFY (mixing_store%norm_res_buffer)
175 NULLIFY (mixing_store%ig_global_index)
176 NULLIFY (mixing_store%paw)
177 NULLIFY (mixing_store%cpc_h_in)
178 NULLIFY (mixing_store%cpc_s_in)
179 NULLIFY (mixing_store%cpc_h_old)
180 NULLIFY (mixing_store%cpc_s_old)
181 NULLIFY (mixing_store%dcpc_h_in)
182 NULLIFY (mixing_store%dcpc_s_in)
183 NULLIFY (mixing_store%cpc_h_lastres)
184 NULLIFY (mixing_store%cpc_s_lastres)
185 NULLIFY (mixing_store%cpc_h_in_buffer)
186 NULLIFY (mixing_store%cpc_s_in_buffer)
187 NULLIFY (mixing_store%cpc_h_res_buffer)
188 NULLIFY (mixing_store%cpc_s_res_buffer)
195 IF (mixing_store%alpha_mag < 0.0_dp) mixing_store%alpha_mag = mixing_store%alpha
196 IF (mixing_store%beta_mag < 0.0_dp) mixing_store%beta_mag = mixing_store%beta
203 IF (mixing_store%max_gvec_exp > 0._dp)
THEN
204 alpha = 0.25_dp/mixing_store%max_gvec_exp
207 mixing_store%max_g2 = gcut*gcut
210 SELECT CASE (mixing_method)
212 mixing_store%nbuffer = 1
218 mixing_store%bconst = 20.0_dp
223 mixing_store%bconst = 20.0_dp
250 IF (
ASSOCIATED(mixing_store%kerker_factor))
THEN
251 DEALLOCATE (mixing_store%kerker_factor)
254 IF (
ASSOCIATED(mixing_store%kerker_factor_mag))
THEN
255 DEALLOCATE (mixing_store%kerker_factor_mag)
258 IF (
ASSOCIATED(mixing_store%special_metric))
THEN
259 DEALLOCATE (mixing_store%special_metric)
262 IF (
ASSOCIATED(mixing_store%pulay_matrix))
THEN
263 DEALLOCATE (mixing_store%pulay_matrix)
266 IF (
ASSOCIATED(mixing_store%rhoin_buffer))
THEN
267 DO i = 1,
SIZE(mixing_store%rhoin_buffer, 2)
268 DO j = 1,
SIZE(mixing_store%rhoin_buffer, 1)
269 DEALLOCATE (mixing_store%rhoin_buffer(j, i)%cc)
272 DEALLOCATE (mixing_store%rhoin_buffer)
275 IF (
ASSOCIATED(mixing_store%paw))
THEN
276 DEALLOCATE (mixing_store%paw)
278 IF (
ASSOCIATED(mixing_store%cpc_h_in))
THEN
279 DO j = 1,
SIZE(mixing_store%cpc_h_in, 2)
280 DO k = 1,
SIZE(mixing_store%cpc_h_in, 1)
281 IF (
ASSOCIATED(mixing_store%cpc_h_in(k, j)%r_coef))
THEN
282 DEALLOCATE (mixing_store%cpc_h_in(k, j)%r_coef)
283 DEALLOCATE (mixing_store%cpc_s_in(k, j)%r_coef)
287 DEALLOCATE (mixing_store%cpc_h_in)
288 DEALLOCATE (mixing_store%cpc_s_in)
290 IF (
ASSOCIATED(mixing_store%cpc_h_old))
THEN
291 DO j = 1,
SIZE(mixing_store%cpc_h_old, 2)
292 DO k = 1,
SIZE(mixing_store%cpc_h_old, 1)
293 IF (
ASSOCIATED(mixing_store%cpc_h_old(k, j)%r_coef))
THEN
294 DEALLOCATE (mixing_store%cpc_h_old(k, j)%r_coef)
295 DEALLOCATE (mixing_store%cpc_s_old(k, j)%r_coef)
299 DEALLOCATE (mixing_store%cpc_h_old)
300 DEALLOCATE (mixing_store%cpc_s_old)
302 IF (
ASSOCIATED(mixing_store%cpc_h_in_buffer))
THEN
303 DO i = 1,
SIZE(mixing_store%cpc_h_in_buffer, 3)
304 DO j = 1,
SIZE(mixing_store%cpc_h_in_buffer, 2)
305 DO k = 1,
SIZE(mixing_store%cpc_h_in_buffer, 1)
306 IF (
ASSOCIATED(mixing_store%cpc_h_in_buffer(k, j, i)%r_coef))
THEN
307 DEALLOCATE (mixing_store%cpc_h_in_buffer(k, j, i)%r_coef)
308 DEALLOCATE (mixing_store%cpc_s_in_buffer(k, j, i)%r_coef)
313 DEALLOCATE (mixing_store%cpc_h_in_buffer)
314 DEALLOCATE (mixing_store%cpc_s_in_buffer)
316 IF (
ASSOCIATED(mixing_store%cpc_h_res_buffer))
THEN
317 DO i = 1,
SIZE(mixing_store%cpc_h_res_buffer, 3)
318 DO j = 1,
SIZE(mixing_store%cpc_h_res_buffer, 2)
319 DO k = 1,
SIZE(mixing_store%cpc_h_res_buffer, 1)
320 IF (
ASSOCIATED(mixing_store%cpc_h_res_buffer(k, j, i)%r_coef))
THEN
321 DEALLOCATE (mixing_store%cpc_h_res_buffer(k, j, i)%r_coef)
322 DEALLOCATE (mixing_store%cpc_s_res_buffer(k, j, i)%r_coef)
327 DEALLOCATE (mixing_store%cpc_h_res_buffer)
328 DEALLOCATE (mixing_store%cpc_s_res_buffer)
331 IF (
ASSOCIATED(mixing_store%dcpc_h_in))
THEN
332 DO i = 1,
SIZE(mixing_store%dcpc_h_in, 3)
333 DO j = 1,
SIZE(mixing_store%dcpc_h_in, 2)
334 DO k = 1,
SIZE(mixing_store%dcpc_h_in, 1)
335 IF (
ASSOCIATED(mixing_store%dcpc_h_in(k, j, i)%r_coef))
THEN
336 DEALLOCATE (mixing_store%dcpc_h_in(k, j, i)%r_coef)
337 DEALLOCATE (mixing_store%dcpc_s_in(k, j, i)%r_coef)
342 DEALLOCATE (mixing_store%dcpc_h_in)
343 DEALLOCATE (mixing_store%dcpc_s_in)
345 IF (
ASSOCIATED(mixing_store%cpc_h_lastres))
THEN
346 DO j = 1,
SIZE(mixing_store%cpc_h_lastres, 2)
347 DO k = 1,
SIZE(mixing_store%cpc_h_lastres, 1)
348 IF (
ASSOCIATED(mixing_store%cpc_h_lastres(k, j)%r_coef))
THEN
349 DEALLOCATE (mixing_store%cpc_h_lastres(k, j)%r_coef)
350 DEALLOCATE (mixing_store%cpc_s_lastres(k, j)%r_coef)
354 DEALLOCATE (mixing_store%cpc_h_lastres)
355 DEALLOCATE (mixing_store%cpc_s_lastres)
358 IF (
ASSOCIATED(mixing_store%res_buffer))
THEN
359 DO i = 1,
SIZE(mixing_store%res_buffer, 2)
360 DO j = 1,
SIZE(mixing_store%res_buffer, 1)
361 DEALLOCATE (mixing_store%res_buffer(j, i)%cc)
364 DEALLOCATE (mixing_store%res_buffer)
367 IF (
ASSOCIATED(mixing_store%norm_res_buffer))
THEN
368 DEALLOCATE (mixing_store%norm_res_buffer)
371 IF (
ASSOCIATED(mixing_store%ig_global_index))
THEN
372 DEALLOCATE (mixing_store%ig_global_index)
375 IF (
ASSOCIATED(mixing_store%drho_buffer))
THEN
376 DO i = 1,
SIZE(mixing_store%drho_buffer, 2)
377 DO j = 1,
SIZE(mixing_store%drho_buffer, 1)
378 DEALLOCATE (mixing_store%drho_buffer(j, i)%cc)
381 DEALLOCATE (mixing_store%drho_buffer)
384 IF (
ASSOCIATED(mixing_store%last_res))
THEN
385 DO i = 1,
SIZE(mixing_store%last_res)
386 DEALLOCATE (mixing_store%last_res(i)%cc)
388 DEALLOCATE (mixing_store%last_res)
391 IF (
ASSOCIATED(mixing_store%rhoin))
THEN
392 DO i = 1,
SIZE(mixing_store%rhoin)
393 DEALLOCATE (mixing_store%rhoin(i)%cc)
395 DEALLOCATE (mixing_store%rhoin)
398 IF (
ASSOCIATED(mixing_store%rhoin_old))
THEN
399 DO i = 1,
SIZE(mixing_store%rhoin_old)
400 DEALLOCATE (mixing_store%rhoin_old(i)%cc)
402 DEALLOCATE (mixing_store%rhoin_old)
405 IF (
ASSOCIATED(mixing_store%p_metric))
THEN
406 DEALLOCATE (mixing_store%p_metric)
409 IF (
ASSOCIATED(mixing_store%weight))
THEN
410 DEALLOCATE (mixing_store%weight)
413 IF (
ASSOCIATED(mixing_store%fmat))
THEN
414 DEALLOCATE (mixing_store%fmat)
417 IF (
ASSOCIATED(mixing_store%acharge))
THEN
418 DEALLOCATE (mixing_store%acharge)
420 IF (
ASSOCIATED(mixing_store%dacharge))
THEN
421 DEALLOCATE (mixing_store%dacharge)
423 IF (
ASSOCIATED(mixing_store%dfbroy))
THEN
424 DEALLOCATE (mixing_store%dfbroy)
426 IF (
ASSOCIATED(mixing_store%ubroy))
THEN
427 DEALLOCATE (mixing_store%ubroy)
429 IF (
ASSOCIATED(mixing_store%abroy))
THEN
430 DEALLOCATE (mixing_store%abroy)
432 IF (
ASSOCIATED(mixing_store%wbroy))
THEN
433 DEALLOCATE (mixing_store%wbroy)
435 IF (
ASSOCIATED(mixing_store%atlist))
THEN
436 DEALLOCATE (mixing_store%atlist)
439 IF (
ALLOCATED(mixing_store%tb_scc_mixer))
THEN
440 DEALLOCATE (mixing_store%tb_scc_mixer)
444 IF (
ASSOCIATED(mixing_store%delta_res))
THEN
445 DO i = 1,
SIZE(mixing_store%delta_res, 2)
446 DO j = 1,
SIZE(mixing_store%delta_res, 1)
447 DEALLOCATE (mixing_store%delta_res(j, i)%cc)
450 DEALLOCATE (mixing_store%delta_res)
453 IF (
ASSOCIATED(mixing_store%u_vec))
THEN
454 DO i = 1,
SIZE(mixing_store%u_vec, 2)
455 DO j = 1,
SIZE(mixing_store%u_vec, 1)
456 DEALLOCATE (mixing_store%u_vec(j, i)%cc)
459 DEALLOCATE (mixing_store%u_vec)
462 IF (
ASSOCIATED(mixing_store%z_vec))
THEN
463 DO i = 1,
SIZE(mixing_store%z_vec, 2)
464 DO j = 1,
SIZE(mixing_store%z_vec, 1)
465 DEALLOCATE (mixing_store%z_vec(j, i)%cc)
468 DEALLOCATE (mixing_store%z_vec)
488 LOGICAL,
INTENT(IN),
OPTIONAL :: ls_scf
490 CHARACTER(LEN=default_string_length) :: section_name
491 INTEGER :: default_mix
495 cpassert(.NOT.
ASSOCIATED(section))
497 IF (
PRESENT(ls_scf))
THEN
508 section_name =
"RHO_MIXING"
510 section_name =
"MIXING"
515 description=
"Define type and parameters for mixing "// &
516 "procedures to be applied to the density matrix. Normally, "// &
517 "only one type of mixing method should be accepted. The mixing "// &
518 "procedures activated by this section are only active for diagonalization "// &
519 "methods and linear scaling SCF, i.e. not with minimization methods based "// &
528 name=
"_SECTION_PARAMETERS_", &
529 description=
"Controls the activation of the mixing procedure", &
530 usage=
"&MIXING ON", &
531 default_l_val=.true., &
532 lone_keyword_l_val=.true.)
544 description=
"Mixing method to be applied", &
546 usage=
"METHOD KERKER_MIXING", &
547 default_i_val=default_mix, &
548 enum_c_vals=
s2a(
"NONE", &
553 "MODIFIED_BROYDEN_MIXING", &
554 "MULTISECANT_MIXING", &
555 "NEW_PULAY_MIXING"), &
559 enum_desc=
s2a(
"No mixing is applied", &
560 "Direct mixing of new and old density matrices", &
561 "Mixing of the potential in reciprocal space using the Kerker damping", &
563 "Original CP2K Broyden mixing with a constant BROY_W0 regularization", &
564 "Modified Broyden mixing with dynamic residual weights controlled by BROY_W0, "// &
565 "BROY_WREF, and BROY_WMAX", &
566 "Multisecant scheme for mixing",
"New Pulay mixing using Sundararaman et al.'s "// &
567 "metric and preconditioner, with improved convergence behavior and suitable for "// &
568 "grand canonical SCF"))
575 description=
"Fraction of new density to be included", &
579 default_r_val=0.4_dp, &
586 description=
"Fraction of new magnetization density to be included "// &
587 "(for spin-polarized calculations, ispin=2 channel after rho_total/m transform). "// &
588 "A negative value (default) means: use the same value as ALPHA. "// &
589 "For magnetic transition-metal systems, a larger value (e.g. 0.8-1.6) "// &
590 "than ALPHA often improves convergence.", &
594 default_r_val=-1.0_dp, &
595 usage=
"ALPHA_MAG 0.8")
601 description=
"Denominator parameter in Kerker damping "// &
602 "introduced to suppress charge sloshing: "// &
603 "rho_mix(g) = rho_in(g) + alpha*g^2/(g^2 + beta^2)*(rho_out(g)-rho_in(g))", &
607 default_r_val=0.5_dp, &
608 unit_str=
"bohr^-1", &
615 description=
"Kerker damping parameter for the magnetization channel "// &
616 "(for spin-polarized calculations). A negative value (default) means: "// &
617 "use the same value as BETA. Set to 0.0 to disable Kerker screening "// &
618 "on the magnetization density, which avoids suppression of long-range "// &
619 "magnetic order formation in transition-metal systems.", &
623 default_r_val=-1.0_dp, &
624 unit_str=
"bohr^-1", &
625 usage=
"BETA_MAG 0.0")
630 name=
"PULAY_ALPHA", &
631 description=
"Fraction of new density to be added to the Pulay expansion", &
635 default_r_val=0.0_dp, &
636 usage=
"PULAY_ALPHA 0.2")
642 description=
"Fraction of residual contribution to be added to Pulay expansion", &
646 default_r_val=1.0_dp, &
647 usage=
"PULAY_BETA 0.2")
653 description=
"The control parameter in the numerator of the Pulay metric "// &
654 "used in the new Pulay mixing, introduced to suppress charge sloshing: "// &
655 "Pulay metric: M(g) = (g^2 + qm^2 + qkapa^2)/(g^2 + qkapa^2)", &
659 default_r_val=0.75_dp, &
660 unit_str=
"bohr^-1", &
667 description=
"The control parameter in the denominator of the Kerker preconditioner "// &
668 "used in the new Pulay mixing, introduced to suppress charge sloshing: "// &
669 "Kerker preconditioner: K(g) = alpha * (g^2 + qkapa^2)/(g^2 + qk^2 + qkapa^2)", &
673 default_r_val=3.0_dp, &
674 unit_str=
"bohr^-1", &
681 description=
"The control parameter in the numerator and the denominator of "// &
682 "the Pulay metric and the Kerker preconditioner "// &
683 "used in the new Pulay mixing, introduced to ensure a finite and well-defined "// &
684 "Pulay metric at g=0 and a non-zero and well-defined Kerker preconditioner at g=0", &
688 default_r_val=0.25_dp, &
689 unit_str=
"bohr^-1", &
695 description=
"Minimal number of density mixing (should be greater than 0), "// &
696 "before starting DIIS", &
697 usage=
"NMIXING 1", default_i_val=2)
702 variants=
s2a(
"NPULAY",
"NBROYDEN",
"NMULTISECANT"), &
703 description=
"Number of previous steps stored for the actual mixing scheme", &
704 usage=
"NBUFFER 2", default_i_val=4)
710 description=
"Regularization weight used in Broyden mixing. For the original "// &
711 "BROYDEN_MIXING method this is the constant diagonal regularization of the "// &
712 "small Broyden system. For MODIFIED_BROYDEN_MIXING it is the corresponding "// &
713 "diagonal regularization of the dynamically weighted Broyden system. "// &
714 "The default follows tblite.", &
718 default_r_val=0.01_dp, &
719 usage=
"BROY_W0 0.03")
725 description=
"Reference factor for the dynamic residual weight. This keyword "// &
726 "is only used by MODIFIED_BROYDEN_MIXING; the original BROYDEN_MIXING path "// &
727 "is unchanged. The effective history weight is proportional to BROY_WREF "// &
728 "divided by the residual norm, clipped to the interval [1, BROY_WMAX]. "// &
729 "The default follows tblite.", &
733 default_r_val=0.01_dp, &
734 usage=
"BROY_WREF 0.01")
740 description=
"Upper bound for the dynamic residual weight. This keyword is "// &
741 "only used by MODIFIED_BROYDEN_MIXING; the original BROYDEN_MIXING path is "// &
742 "unchanged. The lower bound is fixed to 1.0. The default follows tblite.", &
746 default_r_val=100000.0_dp, &
747 usage=
"BROY_WMAX 100000.0")
752 name=
"REGULARIZATION", &
753 description=
"Regularization parameter to stabilize "// &
754 "the inversion of the residual matrix {Yn^t Yn} in the "// &
755 "multisecant mixing scheme (noise)", &
759 default_r_val=0.00001_dp, &
760 usage=
"REGULARIZATION 0.000001")
766 description=
"Upper bound for the magnitude of the "// &
767 "unpredicted step size in the update by the "// &
768 "multisecant mixing scheme", &
772 default_r_val=0.1_dp, &
779 description=
"Control factor for the magnitude of the "// &
780 "unpredicted step size in the update by the "// &
781 "multisecant mixing scheme", &
785 default_r_val=0.05_dp, &
786 usage=
"R_FACTOR .12")
791 variants=[
"NSKIP_MIXING"], &
792 description=
"Number of initial iteration for which the mixing is skipped", &
793 usage=
"NSKIP 10", default_i_val=0)
798 variants=[
"NSIMPLEMIX"], &
799 description=
"Number of kerker damping iterations before starting other mixing procedures", &
800 usage=
"NSIMPLEMIX", default_i_val=0)
805 description=
"Restricts the G-space mixing to lower part of G-vector spectrum,"// &
806 " up to a G0, by assigning the exponent of the Gaussian that can be "// &
807 "represented by vectors smaller than G0 within a certain accuracy. ", &
811 default_r_val=-1._dp, &
812 usage=
"MAX_GVEC_EXP 3.")
817 description=
"Activate the mixing of the density matrix, using the same"// &
818 " mixing coefficient applied for the g-space mixing.", &
820 lone_keyword_l_val=.true., &
821 default_l_val=.false., &