Skip to content

Commit be0f278

Browse files
committed
Test: Add an integrate test 123_PW_zero_atom
1 parent 594833c commit be0f278

File tree

6 files changed

+62
-0
lines changed

6 files changed

+62
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
6+
nbands 6
7+
symmetry 0
8+
pseudo_dir ../../PP_ORB/
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 20
12+
13+
#Parameters (3.Basis)
14+
basis_type pw
15+
16+
#Parameters (4.Smearing)
17+
smearing_method gauss
18+
smearing_sigma 0.0002
19+
20+
#Parameters (5.Mixing)
21+
mixing_type broyden
22+
mixing_beta 0.7
23+
cal_force 1
24+
test_force 1
25+
cal_stress 1
26+
test_stress 1
27+
28+
pw_seed 1
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 2 2 0 0 0
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ATOMIC_SPECIES
2+
Al 13 Al_ONCV_PBE-1.0.upf upf201
3+
Si 14 Si_ONCV_PBE-1.0.upf upf201
4+
5+
LATTICE_CONSTANT
6+
10.2 // add lattice constant
7+
8+
LATTICE_VECTORS
9+
0.5 0.5 0.0
10+
0.5 0.0 0.5
11+
0.0 0.5 0.5
12+
13+
ATOMIC_POSITIONS
14+
Direct
15+
16+
Al
17+
0.0
18+
0
19+
Si // Element type
20+
0.0 // magnetism
21+
2
22+
0.00 0.00 0.00 1 1 1
23+
0.25 0.25 0.25 1 1 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test calculation when atom number is zero.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
etotref -211.8003327929410489
2+
etotperatomref -105.9001663965
3+
totalforceref 0.000014
4+
totalstressref 368.726447
5+
totaltimeref 0.61

tests/integrate/CASES_CPU.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
121_PW_KPAR
9999
121_PW_kspacing
100100
127_PW_15_PK_AF
101+
123_PW_zero_atom
101102
128_PW_zero_ntype
102103
133_PW_DJ_PK
103104
135_PW_15_PK

0 commit comments

Comments
 (0)