Skip to content

Commit f9b330c

Browse files
committed
add tests & docs
1 parent 3cb099e commit f9b330c

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

docs/advanced/input_files/input-main.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
- [pw\_seed](#pw_seed)
3939
- [pw\_diag\_thr](#pw_diag_thr)
4040
- [diago\_smooth\_ethr](#diago_smooth_ethr)
41+
- [use\_k\_continuity](#use_k_continuity)
4142
- [pw\_diag\_nmax](#pw_diag_nmax)
4243
- [pw\_diag\_ndim](#pw_diag_ndim)
4344
- [diag\_subspace](#diag_subspace)
@@ -820,6 +821,18 @@ These variables are used to control the plane wave related parameters.
820821
- **Description**: If `TRUE`, the smooth threshold strategy, which applies a larger threshold (10e-5) for the empty states, will be implemented in the diagonalization methods. (This strategy should not affect total energy, forces, and other ground-state properties, but computational efficiency will be improved.) If `FALSE`, the smooth threshold strategy will not be applied.
821822
- **Default**: false
822823

824+
### use_k_continuity
825+
826+
- **Type**: Boolean
827+
- **Availability**: Used only for plane wave basis set.
828+
- **Description**: Whether to use k-point continuity for initializing wave functions. When enabled, this strategy exploits the similarity between wavefunctions at neighboring k-points by propagating the wavefunction from a previously initialized k-point to a new k-point, significantly reducing the computational cost of the initial guess.
829+
830+
**Important constraints:**
831+
- Must be used together with `diago_smooth_ethr = 1` for optimal performance
832+
833+
This feature is particularly useful for calculations with dense k-point sampling where the computational cost of wavefunction initialization becomes significant.
834+
- **Default**: false
835+
823836
### pw_diag_nmax
824837

825838
- **Type**: Integer

tests/01_PW/001_PW_UPF100_Al/INPUT

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ smearing_sigma 0.002
2323
#Parameters (5.Mixing)
2424
mixing_type broyden
2525
mixing_beta 0.7
26+
diago_smooth_ethr 1
27+
use_k_continuity 1

tests/11_PW_GPU/001_PW_BPCG_GPU/INPUT

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ mixing_beta 0.4
3535
mixing_gg0 1.5
3636

3737
pw_seed 1
38+
diago_smooth_ethr 1
39+
use_k_continuity 1

0 commit comments

Comments
 (0)