Skip to content

Commit 455f899

Browse files
committed
Add integration tests for PW get_wf and get_pchg and some bug fixes
1 parent 3aaede0 commit 455f899

File tree

18 files changed

+227
-106
lines changed

18 files changed

+227
-106
lines changed

tests/01_PW/112_PW_get_wf/INPUT

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
6+
nbands 6
7+
symmetry 1
8+
pseudo_dir ../../PP_ORB
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 20
12+
scf_thr 1e-9
13+
scf_nmax 100
14+
15+
#Parameters (3.Basis)
16+
basis_type pw
17+
18+
out_wfc_norm 1 3*0
19+
out_wfc_re_im 0 1 2*0
20+
21+
pw_seed 1

tests/01_PW/112_PW_get_wf/KPT

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

tests/01_PW/112_PW_get_wf/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test the output of out_wfc_norm and out_wfc_re_im

tests/01_PW/112_PW_get_wf/STRU

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ATOMIC_SPECIES
2+
Si 14 Si_ONCV_PBE-1.0.upf upf201
3+
4+
LATTICE_CONSTANT
5+
10.2 // add lattice constant
6+
7+
LATTICE_VECTORS
8+
0.0 0.5 0.5
9+
0.5 0.0 0.5
10+
0.5 0.5 0.0
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.25 0.25 0.25 1 1 1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
etotref -197.1405644417785
2+
etotperatomref -98.5702822209
3+
wf1s1k1.cube 22.08506167
4+
wf2s1k1imag.cube 7.845633773e-07
5+
wf2s1k1real.cube 2.250475858e-07
6+
pointgroupref T_d
7+
spacegroupref O_h
8+
nksibzref 1
9+
totaltimeref 0.35

tests/01_PW/113_PW_get_pchg/INPUT

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
INPUT_PARAMETERS
2+
#Parameters (1.General)
3+
suffix autotest
4+
calculation scf
5+
6+
nbands 6
7+
symmetry 1
8+
pseudo_dir ../../PP_ORB
9+
10+
#Parameters (2.Iteration)
11+
ecutwfc 20
12+
scf_thr 1e-9
13+
scf_nmax 100
14+
15+
#Parameters (3.Basis)
16+
basis_type pw
17+
18+
out_pchg 4*1
19+
20+
pw_seed 1

tests/01_PW/113_PW_get_pchg/KPT

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

tests/01_PW/113_PW_get_pchg/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test the output of out_pchg

tests/01_PW/113_PW_get_pchg/STRU

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ATOMIC_SPECIES
2+
Si 14 Si_ONCV_PBE-1.0.upf upf201
3+
4+
LATTICE_CONSTANT
5+
10.2 // add lattice constant
6+
7+
LATTICE_VECTORS
8+
0.0 0.5 0.5
9+
0.5 0.0 0.5
10+
0.5 0.5 0.0
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.25 0.25 0.25 1 1 1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
etotref -197.1405644417787
2+
etotperatomref -98.5702822209
3+
BAND1_SPIN1_CHG.cube 2
4+
BAND2_SPIN1_CHG.cube 2
5+
BAND3_SPIN1_CHG.cube 2
6+
BAND4_SPIN1_CHG.cube 2
7+
pointgroupref T_d
8+
spacegroupref O_h
9+
nksibzref 1
10+
totaltimeref 0.35

0 commit comments

Comments
 (0)