Skip to content

Commit ccd9445

Browse files
[Tests] Add test for small cell (#7216)
* Add test for small cell * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update input and ref * Update input and ref * Update input and ref --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 684d30a commit ccd9445

6 files changed

Lines changed: 72 additions & 0 deletions

File tree

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 scf
5+
esolver_type sdft
6+
symmetry 1
7+
pseudo_dir ../../PP_ORB
8+
orbital_dir .
9+
basis_type pw
10+
ecutwfc 500
11+
cal_stress 1
12+
cal_force 1
13+
kpar 1
14+
bndpar 1
15+
16+
#Parameters (2. SCF iterations)
17+
scf_thr 1e-6
18+
19+
#Parameters (3. Solve KS equation)
20+
nbands 0
21+
nbands_sto 96
22+
nche_sto 50
23+
seed_sto 20000
24+
pw_seed 1
25+
method_sto 2
26+
ks_solver cg
27+
28+
#Parameters (4.Smearing)
29+
smearing_method fd
30+
smearing_sigma 25.33454852
31+
32+
#Parameters (5.Mixing)
33+
mixing_type broyden
34+
mixing_beta 0.7
35+
mixing_gg0 0
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+
2 1 1 0 0 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test SDFT SCF correctness on a very small cell with lightweight settings
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#This is the atom file containing all the information
2+
#about the lattice structure.
3+
4+
ATOMIC_SPECIES
5+
D 2.0141017778 H.SG15.PBE.UPF #Element, Mass, Pseudopotential
6+
7+
LATTICE_CONSTANT
8+
0.3838341862 #Lattice constant
9+
10+
LATTICE_VECTORS
11+
1.0 0.0 0.0 #Lattice vector 1
12+
0.0 1.0 0.0 #Lattice vector 2
13+
0.0 0.0 1.0 #Lattice vector 3
14+
15+
ATOMIC_POSITIONS
16+
Direct
17+
D #Name of element
18+
0.0
19+
4
20+
0.000 0.000 0.000 1 1 1
21+
0.000 0.500 0.500 1 1 1
22+
0.500 0.000 0.500 1 1 1
23+
0.500 0.500 0.000 1 1 1
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
etotref 3259.2802240676614929
2+
etotperatomref 814.8200560169
3+
totalforceref 0.000000
4+
totalstressref 1271683315.068934
5+
pointgroupref O_h
6+
spacegroupref O_h
7+
nksibzref 2
8+
totaltimeref 3.01

tests/06_SDFT/CASES_CPU.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
21_PW_SKG_10D10S
2222
22_PW_SKG_ALL
2323
23_PW_SNLKG_10D10S
24+
24_PW_SDFT_SMALL_CELL

0 commit comments

Comments
 (0)