Skip to content

Commit 503bf58

Browse files
committed
add the float BPCG
1 parent 4773008 commit 503bf58

File tree

11 files changed

+88
-7
lines changed

11 files changed

+88
-7
lines changed

source/module_hamilt_pw/hamilt_pwdft/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ remove_definitions(-D__DEEPKS)
22
remove_definitions(-D__CUDA)
33
remove_definitions(-D__ROCM)
44
remove_definitions(-D__EXX)
5+
remove_definitions(-DUSE_PAW)
56

67
AddTest(
78
TARGET pwdft_soc
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
INPUT_PARAMETERS
2+
#Parameters (General)
3+
suffix autotest
4+
pseudo_dir ../../PP_ORB
5+
pw_seed 1
6+
7+
gamma_only 0
8+
calculation scf
9+
symmetry 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 20
18+
19+
#Parameters (LCAO)
20+
basis_type pw
21+
ks_solver bpcg
22+
device cpu
23+
chg_extrap second-order
24+
out_dm 0
25+
pw_diag_thr 0.00001
26+
27+
cal_force 1
28+
#test_force 1
29+
cal_stress 1
30+
#test_stress 1
31+
32+
mixing_type broyden
33+
mixing_beta 0.4
34+
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This test for:
2+
*GaAs-deformation
3+
*PW
4+
*kpoints 2*2*2
5+
*sg15 pseudopotential
6+
*smearing_method gauss
7+
*ks_solver bpcg
8+
*mixing_type broyden-kerker
9+
*mixing_beta 0.4
10+
*precison float
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ATOMIC_SPECIES
2+
As 1 As_dojo.upf upf201
3+
Ga 1 Ga_dojo.upf upf201
4+
5+
LATTICE_CONSTANT
6+
1 // add lattice constant, 10.58 ang
7+
8+
LATTICE_VECTORS
9+
5.33 5.33 0.0
10+
0.0 5.33 5.33
11+
5.33 0.0 5.33
12+
ATOMIC_POSITIONS
13+
Direct //Cartesian or Direct coordinate.
14+
15+
As
16+
0
17+
1
18+
0.300000 0.3300000 0.27000000 0 0 0
19+
20+
Ga //Element Label
21+
0
22+
1 //number of atom
23+
0.00000 0.00000 0.000000 0 0 0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
etotref -4869.7470520063843651
2+
etotperatomref -2434.8735260032
3+
totalforceref 5.194830
4+
totalstressref 37241.448435
5+
pointgroupref C_1
6+
spacegroupref C_1
7+
nksibzref 8
8+
totaltimeref 5.53

tests/integrate/102_PW_CG/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ This test for:
33
*just gamma point
44
*old upf pseudopotential
55
*smearing_method default
6-
*ks_solver dav
7-
6+
*ks_solver cg
7+
*precison float
88
!!!!!!!WRONG!!!!!!!

tests/integrate/102_PW_CG_float/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ This test for:
33
*just gamma point
44
*old upf pseudopotential
55
*smearing_method default
6-
*ks_solver dav
7-
6+
*ks_solver cg
7+
*precison float
88
!!!!!!!WRONG!!!!!!!

tests/integrate/102_PW_DA_davidson_float/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ This test for:
44
*old upf pseudopotential
55
*smearing_method default
66
*ks_solver dav
7-
7+
*precison float
88
!!!!!!!WRONG!!!!!!!

tests/integrate/102_PW_DS_davsubspace_float/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ This test for:
33
*just gamma point
44
*old upf pseudopotential
55
*smearing_method default
6-
*ks_solver dav
7-
6+
*ks_solver dav_subspace
7+
*precison float
88
!!!!!!!WRONG!!!!!!!

0 commit comments

Comments
 (0)