Skip to content

Commit 8d9d80e

Browse files
committed
Add interface test for gromacs 2024 with no config
1 parent 1ee3ec1 commit 8d9d80e

File tree

6 files changed

+75
-2
lines changed

6 files changed

+75
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# step
2+
0
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
;Run control
2+
integrator = md
3+
;time step in picoseconds
4+
dt = 0.001
5+
;number of steps
6+
nsteps = 20
7+
;frequency to write coordinates to output trajectory file
8+
nstxout = 1
9+
nstvout = 1
10+
nstfout = 1
11+
;frequency to write energies to log file
12+
nstlog = 1
13+
;frequency to write energies to energy file
14+
nstenergy = 1
15+
nstcalcenergy = 1
16+
;frequency to write coordinates to xtc trajectory
17+
nstxout-compressed = 1
18+
19+
;Frequency to update the neighbor list (and the long-range forces,
20+
;when using twin-range cut-off's).
21+
nstlist = 10
22+
ns_type = grid
23+
24+
;cut-off distance for the short-range neighbor list
25+
rlist = 1.4
26+
cutoff-scheme = verlet
27+
28+
29+
30+
;treatment of van der waals interactions
31+
vdwtype = cut-off
32+
vdw-modifier = Potential-switch
33+
rvdw = 1.2
34+
rvdw-switch = 1.0
35+
36+
;treatment of electrostatic interactions
37+
;coulombtype = Reaction-Field-zero
38+
rcoulomb-switch = 1.0
39+
rcoulomb = 1.2
40+
41+
;Constrain h-bonds with SETTLE
42+
;Match NAMD parameters
43+
constraints = h-bonds
44+
constraint-algorithm = SHAKE
45+
46+
; comm_mode = Angular
47+
48+
; Periodic boundary conditions
49+
pbc = xyz
50+
;Temperature coupling
51+
tcoupl = no
52+
;Velocity generation
53+
gen_vel = no
54+
55+
; Colvars configuration
56+
colvars-active = yes
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- sh-basic-offset: 2; sh-indentation: 2; -*-
2+
3+
# For GROMACS 2024 with Colvars MdModule
4+
5+
gmx_d grompp -f nocvconfig.mdp -c ../Common/system.gro -p ../Common/system.top -o test.tpr
6+
# Restart tpr
7+
gmx_d convert-tpr -s test.tpr -o test.restart.tpr -nsteps 100
8+
9+
10+
basename=test
11+
options="-ntmpi 1 -ntomp 2"
12+
13+
gmx_d mdrun -s test.tpr -deffnm ${basename} ${options} &> ${basename}.out
14+
15+
gmx_d mdrun -s test.tpr -deffnm ${basename} -noappend -cpi ${basename%.restart}.cpt -colvars_restart test.colvars.state.dat ${options} &> ${basename}.out
131 KB
Binary file not shown.
131 KB
Binary file not shown.

gromacs/tests/library/run_tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ for dir in ${DIRLIST} ; do
156156
# Symbolink link to the colvars input file, index file, and xyz file
157157
ln -sf test.in test.dat
158158
ln -sf ../Common/da.ndx index.ndx
159-
if grep -q "refPositionsFile rmsd_" test.dat
159+
if [ -f test.dat ] && grep -q "refPositionsFile rmsd_" test.dat
160160
then
161161
ln -fs ../Common/rmsd_atoms_refpos.xyz ./
162162
ln -fs ../Common/rmsd_atoms_refpos2.xyz ./
163163
ln -fs ../Common/rmsd_atoms_random.xyz ./
164164
fi
165-
if grep -q "refPositionsFile heavy_" test.dat
165+
if [ -f test.dat ] && grep -q "refPositionsFile heavy_" test.dat
166166
then
167167
ln -fs ../Common/heavy_atoms_refpos.xyz heavy_atoms_refpos.xyz
168168
fi

0 commit comments

Comments
 (0)