Skip to content

Commit 291ab1d

Browse files
committed
refactor: add integration tests for SDFT
1 parent 09973cb commit 291ab1d

File tree

67 files changed

+842
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+842
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation sto-scf
5+
ntype 1
6+
symmetry 0
7+
pseudo_dir ../tools/PP_ORB/
8+
nbands 0
9+
10+
nbands_sto 10
11+
nche_sto 120
12+
seed_sto -20000
13+
kpar 1
14+
cal_force 1
15+
cal_stress 1
16+
test_force 1
17+
test_stress 1
18+
19+
#Parameters (2.Iteration)
20+
ecutwfc 20
21+
scf_thr 1e-4
22+
scf_nmax 20
23+
24+
25+
#Parameters (3.Basis)
26+
basis_type pw
27+
gamma_only 1
28+
29+
#Parameters (4.Smearing)
30+
smearing_method fd
31+
smearing_sigma 0.6
32+
33+
#Parameters (5.Mixing)
34+
mixing_type plain
35+
mixing_beta 0.7
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
1 1 1 0 0 0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This test for:
2+
*SDFT
3+
*Al
4+
*kpoints 1*1*1
5+
*10 stochastic orbitals
6+
*mixing_type plain
7+
*mixing_beta 0.7
8+
*seed_sto < 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ATOMIC_SPECIES
2+
Al 27 Al_ONCV_PBE-1.0.upf
3+
4+
LATTICE_CONSTANT
5+
8 // add lattice constant
6+
7+
LATTICE_VECTORS
8+
1 0 0
9+
0 1 0
10+
0 0 1
11+
12+
ATOMIC_POSITIONS
13+
Direct
14+
15+
Al // Element type
16+
0.0 // magnetism
17+
2
18+
0.00 0.00 0.00 1 1 1
19+
0.5 0.5 0.5 1 1 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test SDFT with 10 stochastic orbitals, 1*1*1 kpoint, -20000 seed_sto (must use 4 cores)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -3428.9063360066743371
2+
etotperatomref -1714.4531680033
3+
totalforceref 0.000000
4+
totalstressref 18094.045471
5+
totaltimeref +2.03511
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation sto-scf
5+
ntype 1
6+
symmetry 0
7+
pseudo_dir ../tools/PP_ORB/
8+
nbands 0
9+
10+
nbands_sto 10
11+
nche_sto 120
12+
seed_sto 20000
13+
kpar 1
14+
cal_force 1
15+
cal_stress 1
16+
test_force 1
17+
test_stress 1
18+
19+
#Parameters (2.Iteration)
20+
ecutwfc 20
21+
scf_thr 1e-4
22+
scf_nmax 20
23+
24+
25+
#Parameters (3.Basis)
26+
basis_type pw
27+
gamma_only 1
28+
29+
#Parameters (4.Smearing)
30+
smearing_method fd
31+
smearing_sigma 0.6
32+
33+
#Parameters (5.Mixing)
34+
mixing_type broyden
35+
mixing_beta 0.4
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
K_POINTS
2+
0
3+
Gamma
4+
1 1 1 0 0 0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This test for:
2+
*SDFT
3+
*Si
4+
*kpoints 1*1*1
5+
*10 stochastic orbitals
6+
*mixing_type broyden
7+
*mixing_beta 0.4
8+
*seed_sto > 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ATOMIC_SPECIES
2+
Si 28 Si.pz-vbc.UPF
3+
4+
LATTICE_CONSTANT
5+
8 // add lattice constant
6+
7+
LATTICE_VECTORS
8+
1 0 0
9+
0 1 0
10+
0 0 1
11+
12+
ATOMIC_POSITIONS
13+
Direct
14+
15+
Si // Element type
16+
0.0 // magnetism
17+
2
18+
0.00 0.00 0.00 1 1 1
19+
0.5 0.5 0.5 1 1 1

0 commit comments

Comments
 (0)