Skip to content

Commit b6b0d4a

Browse files
committed
Fix docs for mixing_beta & mixing_beta_mag to suggest parameters for scf hard to converge.
1 parent ed09fe7 commit b6b0d4a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

source/source_io/module_parameter/read_input_item_elec_stru.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ In general, the convergence of the Broyden method is slightly faster than that o
578578
* 0: keep charge density unchanged, usually used for restarting with init_chg=file or testing.
579579
* 0.1 or less: if convergence of SCF calculation is difficult to reach, please try 0 < mixing_beta < 0.1.
580580
581-
Note: For low-dimensional large systems, the setup of mixing_beta=0.1, mixing_ndim=20, and mixing_gg0=1.0 usually works well.)";
581+
Note: For low-dimensional large systems, the setup of mixing_beta=0.1, mixing_ndim=20, and mixing_gg0=1.0 usually works well.
582+
583+
For spin-polarized calculations (nspin=2 or nspin=4) that are difficult to converge, try reducing both mixing_beta and mixing_beta_mag simultaneously, e.g., mixing_beta=0.1 and mixing_beta_mag=0.1 or lower.)";
582584
item.default_value = "0.8 for nspin=1, 0.4 for nspin=2 and nspin=4.";
583585
item.unit = "";
584586
item.availability = "";
@@ -611,7 +613,9 @@ Note: For low-dimensional large systems, the setup of mixing_beta=0.1, mixing_nd
611613
item.annotation = "mixing parameter for magnetic density";
612614
item.category = "Electronic structure";
613615
item.type = "Real";
614-
item.description = "Mixing parameter of magnetic density.";
616+
item.description = R"(Mixing parameter of magnetic density.
617+
618+
If SCF convergence is difficult with spin polarization (nspin=2 or nspin=4), try reducing both mixing_beta and mixing_beta_mag simultaneously, e.g., mixing_beta=0.1 and mixing_beta_mag=0.1 or lower.)";
615619
item.default_value = "4*mixing_beta, but the maximum value is 1.6.";
616620
item.unit = "";
617621
item.availability = "";

0 commit comments

Comments
 (0)