-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
simulation/silica/cristobalite/confineBSA/poretop/yesbonds/wholesystem/relax_2.extend.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
#PBS -q batch | ||
#PBS -A MAT049 | ||
#PBS -N q0.90_ovl1.5 | ||
#PBS -j oe | ||
#PBS -l nodes=4 | ||
#PBS -l walltime=02:00:00 | ||
#PBS -l gres=atlas1%atlas2 | ||
|
||
export CRAY_CUDA_MPS=1 | ||
source $MODULESHOME/init/bash | ||
module load gromacs/5.1.0 | ||
|
||
# iteration control | ||
extratime=1000 # extend simulations by this much (in picoseconds) | ||
last=10 # no more than these simulations | ||
prev=_PREV_ | ||
curr=$(($prev + 1)) | ||
|
||
cd $PBS_O_WORKDIR | ||
# Extend the run | ||
aprun -n 1 gmx_mpi convert-tpr -s relax_2.${prev}.tpr -extend $extratime -o relax_2.${curr}.tpr | ||
# 8 MPI ranks per node, each one tied to 2 openMP threads | ||
aprun -n 32 -N 8 -d 2 gmx_mpi mdrun -ntomp 2 -gpu_id 00000000 -s relax_2.${curr}.tpr -cpi relax_2.cpt -deffnm relax_2 -append | ||
|
||
# submit next job | ||
if [ $curr -eq $last ]; | ||
then | ||
echo "last simulation done" | ||
exit | ||
fi | ||
./relax_2.submitnext.sh $curr # submit next job | ||
|
9 changes: 9 additions & 0 deletions
9
simulation/silica/cristobalite/confineBSA/poretop/yesbonds/wholesystem/relax_2.submitnext.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
if [ -z "$1" ]; | ||
then | ||
echo "need to pass a number as argument" | ||
exit 1 | ||
fi | ||
sed -e "s/_PREV_/$1/g" relax_2.extend.tpl > relax_2.extend.pbs | ||
qsub relax_2.extend.pbs | ||
|