Skip to content

Commit d5084f6

Browse files
committed
add new test
1 parent 5c156e5 commit d5084f6

File tree

14 files changed

+140
-0
lines changed

14 files changed

+140
-0
lines changed

tests/01_PW/111_PW_CG_float/INPUT

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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-8
13+
scf_nmax 100
14+
15+
16+
#Parameters (3.Basis)
17+
basis_type pw
18+
19+
#Parameters (4.Smearing)
20+
smearing_method gauss
21+
smearing_sigma 0.002
22+
23+
#Parameters (5.Mixing)
24+
mixing_type plain
25+
mixing_beta 0.5
26+
27+
ks_solver cg
28+
device cpu
29+
precision single

tests/01_PW/111_PW_CG_float/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/111_PW_CG_float/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test GaAs deformation simulation base parameters use CG method and float precision in CPU device

tests/01_PW/111_PW_CG_float/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.pz-vbc.UPF
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
etotref -198.22383283
2+
etotperatomref -99.11191642
3+
pointgroupref T_d
4+
spacegroupref O_h
5+
nksibzref 1
6+
totaltimeref
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# The float type possesses different precision compared to the double type.
2+
# This integration aims to test the functionality of the float type
3+
# within the plane-wave (pw) basis
4+
threshold 0.00001
5+
fatal_threshold 1

tests/01_PW/CASES_CPU.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
108_PW_MD_2O
106106
109_PW_PBE0
107107
110_PW_ONCV_skip
108+
111_PW_CG_float
108109
801_PW_LT_sc
109110
802_PW_LT_fcc
110111
803_PW_LT_bcc
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
INPUT_PARAMETERS
2+
#Parameters (General)
3+
suffix autotest
4+
pseudo_dir ../../PP_ORB
5+
6+
gamma_only 0
7+
calculation scf
8+
symmetry 1
9+
relax_nmax 1
10+
out_level ie
11+
smearing_method gaussian
12+
smearing_sigma 0.02
13+
14+
#Parameters (3.PW)
15+
ecutwfc 40
16+
scf_thr 1e-7
17+
scf_nmax 100
18+
19+
#Parameters (LCAO)
20+
basis_type pw
21+
ks_solver cg
22+
device gpu
23+
precision single
24+
chg_extrap second-order
25+
out_dm 0
26+
pw_diag_thr 0.00001
27+
28+
cal_force 1
29+
#test_force 1
30+
cal_stress 1
31+
#test_stress 1
32+
33+
mixing_type broyden
34+
mixing_beta 0.4
35+
mixing_gg0 1.5
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test GaAs deformation simulation base parameters use CG method and float precision in GPU device

0 commit comments

Comments
 (0)