Skip to content

Commit 92e8f58

Browse files
committed
Test: add force and stress test for noncollinear-spin and soc
1 parent ebc3aed commit 92e8f58

File tree

8 files changed

+29
-21
lines changed

8 files changed

+29
-21
lines changed

tests/integrate/104_PW_NC_magnetic/INPUT

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ suffix autotest
44
#nbands 40
55

66
calculation scf
7-
nspin 2
8-
ecutwfc 15
9-
scf_thr 1.0e-8
10-
scf_nmax 200
7+
ecutwfc 20
8+
scf_thr 1.0e-6
9+
scf_nmax 50
1110
out_chg 0
1211

1312
#init_chg file
@@ -16,14 +15,17 @@ out_chg 0
1615
#out_band 1
1716
noncolin 1
1817
smearing_method gaussian
19-
smearing_sigma 0.07
18+
smearing_sigma 0.02
2019

2120
mixing_type broyden
22-
mixing_beta 0.5
21+
mixing_beta 0.2
2322
mixing_ndim 10
2423

25-
ks_solver cg
24+
ks_solver dav_subspace
25+
pw_diag_ndim 2
2626
basis_type pw
27-
symmetry 1
27+
symmetry 0
28+
cal_force 1
29+
cal_stress 1
2830
pseudo_dir ../../PP_ORB
2931
orbital_dir ../../PP_ORB
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
K_POINTS
22
0
33
Gamma
4-
1 1 1 0 0 0
4+
2 2 2 0 0 0

tests/integrate/104_PW_NC_magnetic/STRU

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Fe
1818
1.0
1919
2
2020
0.00 0.00 0.00 1 1 1 angle1 90 angle2 0
21-
0.50 0.50 0.50 1 1 1 angle1 90 angle2 180
21+
0.51 0.52 0.53 1 1 1 angle1 90 angle2 0
2222

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test noncolliner-spin calculation for FM-Fe2 , test force and stress for k-222
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
etotref -5866.197307043378
2-
etotperatomref -2933.0986535217
3-
pointgroupref O_h
4-
spacegroupref O_h
5-
nksibzref 1
6-
totaltimeref 2.23
1+
etotref -6156.9375288905130219
2+
etotperatomref -3078.4687644453
3+
totalforceref 2.221910
4+
totalstressref 76009.325784
5+
totaltimeref 3.03

tests/integrate/140_PW_15_SO/INPUT

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ ecutwfc 20
2525
scf_thr 1e-6
2626
scf_nmax 100
2727

28+
cal_force 1
29+
cal_stress 1
30+
2831
#cal_stress 1
2932
#noncolin 1
3033
lspinorb 1
3134

3235
basis_type pw
33-
ks_solver dav
36+
ks_solver dav_subspace
37+
pw_diag_ndim 2
3438
chg_extrap second-order
3539
out_dm 0
3640
pw_diag_thr 0.00001

tests/integrate/140_PW_15_SO/KPT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
K_POINTS
22
0
33
Gamma
4-
1 1 1 0 0 0
4+
2 1 1 0 0 0
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
etotref -1668.616833271131
2-
etotperatomref -834.3084166356
3-
totaltimeref 5.15
1+
etotref -1678.3650981686614614
2+
etotperatomref -839.1825490843
3+
totalforceref 1.739332
4+
totalstressref 34372.194072
5+
totaltimeref 0.99

0 commit comments

Comments
 (0)