Skip to content

Commit 9c01298

Browse files
YuLiu98mohanchen
andauthored
Test: add test and output for dry run (#6015)
* Test: add test and output for dry run * test: update CASES_CPU.txt * Update relax_driver.cpp --------- Co-authored-by: Mohan Chen <[email protected]>
1 parent 7838569 commit 9c01298

File tree

6 files changed

+113
-0
lines changed

6 files changed

+113
-0
lines changed

source/module_relax/relax_driver.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ void Relax_Driver::relax_driver(ModuleESolver::ESolver* p_esolver, UnitCell& uce
157157
++istep;
158158
}
159159

160+
if (PARAM.inp.relax_nmax == 0)
161+
{
162+
std::cout << "-----------------------------------------------" << std::endl;
163+
std::cout << " relax_nmax = 0, DRY RUN TEST SUCCEEDS :)" << std::endl;
164+
std::cout << "-----------------------------------------------" << std::endl;
165+
}
166+
160167
if (PARAM.inp.out_level == "i")
161168
{
162169
std::cout << " ION DYNAMICS FINISHED :)" << std::endl;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
INPUT_PARAMETERS
2+
#Parameters (General)
3+
suffix autotest
4+
calculation relax
5+
6+
#Parameters (esolver)
7+
esolver_type lj
8+
lj_rule 1
9+
lj_rcut 8.5 8 8.4
10+
lj_epsilon 0.01 0.02
11+
lj_sigma 3.4 3.5
12+
13+
#Parameters (relax)
14+
relax_new 1
15+
relax_nmax 0
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
ATOMIC_SPECIES
2+
Na 22.99
3+
Cl 35.45
4+
5+
LATTICE_CONSTANT
6+
1.889727000000
7+
8+
LATTICE_VECTORS
9+
15.000000000000 0.000000000000 0.000000000000
10+
0.000000000000 15.000000000000 0.000000000000
11+
0.000000000000 0.000000000000 15.000000000000
12+
13+
ATOMIC_POSITIONS
14+
Direct
15+
16+
Na
17+
0
18+
32
19+
0.100000000000 0.000000000000 0.000000000000
20+
0.000000000000 0.000000000000 0.500000000000
21+
0.000000000000 0.500000000000 0.000000000000
22+
0.000000000000 0.500000000000 0.500000000000
23+
0.500000000000 0.000000000000 0.000000000000
24+
0.500000000000 0.000000000000 0.500000000000
25+
0.500000000000 0.500000000000 0.000000000000
26+
0.500000000000 0.500000000000 0.500000000000
27+
0.250000000000 0.250000000000 0.000000000000
28+
0.250000000000 0.250000000000 0.500000000000
29+
0.250000000000 0.750000000000 0.000000000000
30+
0.250000000000 0.750000000000 0.500000000000
31+
0.750000000000 0.250000000000 0.000000000000
32+
0.750000000000 0.250000000000 0.500000000000
33+
0.750000000000 0.750000000000 0.000000000000
34+
0.750000000000 0.750000000000 0.500000000000
35+
0.250000000000 0.000000000000 0.250000000000
36+
0.250000000000 0.000000000000 0.750000000000
37+
0.250000000000 0.500000000000 0.250000000000
38+
0.250000000000 0.500000000000 0.750000000000
39+
0.750000000000 0.000000000000 0.250000000000
40+
0.750000000000 0.000000000000 0.750000000000
41+
0.750000000000 0.500000000000 0.250000000000
42+
0.750000000000 0.500000000000 0.750000000000
43+
0.000000000000 0.250000000000 0.250000000000
44+
0.000000000000 0.250000000000 0.750000000000
45+
0.000000000000 0.750000000000 0.250000000000
46+
0.000000000000 0.750000000000 0.750000000000
47+
0.500000000000 0.250000000000 0.250000000000
48+
0.500000000000 0.250000000000 0.750000000000
49+
0.500000000000 0.750000000000 0.250000000000
50+
0.500000000000 0.750000000000 0.750000000000
51+
52+
Cl
53+
0
54+
32
55+
0.250000000000 0.000000000000 0.000000000000
56+
0.250000000000 0.000000000000 0.500000000000
57+
0.250000000000 0.500000000000 0.000000000000
58+
0.250000000000 0.500000000000 0.500000000000
59+
0.750000000000 0.000000000000 0.000000000000
60+
0.750000000000 0.000000000000 0.500000000000
61+
0.750000000000 0.500000000000 0.000000000000
62+
0.750000000000 0.500000000000 0.500000000000
63+
0.000000000000 0.000000000000 0.250000000000
64+
0.000000000000 0.000000000000 0.750000000000
65+
0.000000000000 0.500000000000 0.250000000000
66+
0.000000000000 0.500000000000 0.750000000000
67+
0.500000000000 0.000000000000 0.250000000000
68+
0.500000000000 0.000000000000 0.750000000000
69+
0.500000000000 0.500000000000 0.250000000000
70+
0.500000000000 0.500000000000 0.750000000000
71+
0.000000000000 0.250000000000 0.000000000000
72+
0.000000000000 0.250000000000 0.500000000000
73+
0.000000000000 0.750000000000 0.000000000000
74+
0.000000000000 0.750000000000 0.500000000000
75+
0.500000000000 0.250000000000 0.000000000000
76+
0.500000000000 0.250000000000 0.500000000000
77+
0.500000000000 0.750000000000 0.000000000000
78+
0.500000000000 0.750000000000 0.500000000000
79+
0.250000000000 0.250000000000 0.250000000000
80+
0.250000000000 0.250000000000 0.750000000000
81+
0.250000000000 0.750000000000 0.250000000000
82+
0.250000000000 0.750000000000 0.750000000000
83+
0.750000000000 0.250000000000 0.250000000000
84+
0.750000000000 0.250000000000 0.750000000000
85+
0.750000000000 0.750000000000 0.250000000000
86+
0.750000000000 0.750000000000 0.750000000000

tests/integrate/707_LJ_dry_run/jd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This test for dry fun
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
etotref 0
2+
etotperatomref 0.0000000000
3+
totaltimeref 0.00

tests/integrate/CASES_CPU.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
704_LJ_CR_multi_ele
298298
705_LJ_single_rule2
299299
706_LJ_RE_stop
300+
707_LJ_dry_run
300301
801_PW_LT_sc
301302
802_PW_LT_fcc
302303
803_PW_LT_bcc

0 commit comments

Comments
 (0)