Skip to content

Commit 52f0eb4

Browse files
committed
Merge branch 'develop' of https://github.com/deepmodeling/abacus-develop into hotfix
2 parents 9ca9cb8 + 3d0de86 commit 52f0eb4

File tree

8 files changed

+117
-1
lines changed

8 files changed

+117
-1
lines changed

Dockerfile.intel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ RUN source /opt/intel/oneapi/setvars.sh && \
4444
ln -s /usr/local/include/elpa_openmp-$ELPA_VER/elpa /usr/local/include/ && \
4545
cd /tmp && rm -rf elpa-$ELPA_VER
4646

47+
RUN cd /tmp && git clone https://github.com/Tencent/rapidjson.git && cp -r rapidjson/include/rapidjson /usr/include/ \
48+
&& rm -rf rapidjson
49+
4750
RUN wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.zip \
4851
--no-check-certificate --quiet -O libtorch.zip && \
4952
unzip -q libtorch.zip -d /opt && rm libtorch.zip

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ABACUS Documentation
88
=================================================
99

10-
ABACUS (**A**tomic-orbital **B**ased **A**b-initio **C**omputation at **US**tc) is
10+
ABACUS (Atomic-orbital Based Ab-initio Computation at UStc) is
1111
an open-source computer code package based on density functional
1212
theory (DFT). The package utilizes both plane wave and numerical
1313
atomic basis sets with the usage of pseudopotentials

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)