-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvt-md.sh
67 lines (44 loc) · 1.29 KB
/
nvt-md.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
#SBATCH --time=36:00:00
#SBATCH --nodes=40
#SBATCH --ntasks-per-node=32
#SBATCH --constraint=haswell
#SBATCH --qos=regular
#SBATCH --account=m906
#SBATCH --job-name=full-nvt-md
module load gromacs/2020.2.hsw
echo "Start at `date`"
# prepare executables for NVT equilibration for 5 instances
for ((i=1;i<=5;i+=1))
do
cd $i
srun -n 1 gmx_sp grompp -f ../nvt.mdp -c emin.gro -r emin.gro -n ../full.ndx -p ../full.top -o nvt.tpr > grompp-nvt.log &
cd ../
done
wait
# run GROMACS NVT equilibration
srun -n 1280 mdrun_mpi_sp -deffnm nvt -maxh 36.00 -cpi -multidir 1 2 3 4 5 &
wait
# prepare executables for NPT equilibration for 5 instances
for ((i=1;i<=5;i+=1))
do
cd $i
srun -n 1 gmx_sp grompp -f ../npt.mdp -c nvt.gro -r nvt.gro -n ../full.ndx -p ../full.top -t nvt.cpt -o npt.tpr > grompp-npt.log &
cd ../
done
wait
# run GROMACS NPT equilibration
srun -n 1280 mdrun_mpi_sp -deffnm npt -maxh 36.00 -cpi -multidir 1 2 3 4 5 &
wait
# prepare executables for MD production for 5 instances
for ((i=1;i<=5;i+=1))
do
cd $i
srun -n 1 gmx_sp grompp -f ../md.mdp -c npt.gro -n ../full.ndx -p ../full.top -t npt.cpt -o md.tpr > grompp-md.log &
cd ../
done
wait
# run GROMACS MD production
srun -n 1280 mdrun_mpi_sp -deffnm md -maxh 36.00 -cpi -multidir 1 2 3 4 5 &
wait
echo "End at `date`"