Skip to content

Commit

Permalink
Merge pull request #123 from ReactionMechanismGenerator/subs
Browse files Browse the repository at this point in the history
Updated submit scripts
  • Loading branch information
alongd committed Apr 29, 2019
2 parents df274a5 + 165f8fb commit 355f6a3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions arc/job/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
#SBATCH -n {cpus}
#SBATCH --time={t_max}
#SBATCH --mem-per-cpu={mem_cpu}
#SBATCH -x node07, node05
which 16
Expand All @@ -116,10 +117,10 @@
echo "Current directory : $(pwd)"
echo "============================================================"
WorkDir=/scratch/users/{un}/$SLURM_JOB_NAME-$SLURM_JOB_ID
WorkDir=/scratch/{un}/$SLURM_JOB_NAME-$SLURM_JOB_ID
SubmitDir=`pwd`
GAUSS_SCRDIR=/scratch/users/{un}/g16/$SLURM_JOB_NAME-$SLURM_JOB_ID
GAUSS_SCRDIR=/scratch/{un}/g16/$SLURM_JOB_NAME-$SLURM_JOB_ID
export GAUSS_SCRDIR
mkdir -p $GAUSS_SCRDIR
Expand All @@ -131,7 +132,7 @@
cp $SubmitDir/input.gjf .
g16 < input.gjf > input.log
formchk check.chk check.fchk
formchk check.chk check.fchk
cp * $SubmitDir/
rm -rf $GAUSS_SCRDIR
Expand All @@ -146,6 +147,7 @@
#SBATCH -n {cpus}
#SBATCH --time={t_max}
#SBATCH --mem-per-cpu={mem_cpu}
#SBATCH -x node07, node05
export PATH=/opt/molpro/molprop_2015_1_linux_x86_64_i8/bin:$PATH
Expand All @@ -158,10 +160,18 @@
echo "============================================================"
sdir=/scratch/{un}/$SLURM_JOB_NAME-$SLURM_JOB_ID
SubmitDir=`pwd`
mkdir -p $sdir
cd $sdir
cp $SubmitDir/input.in .
molpro -n {cpus} -d $sdir input.in
cp input.* $SubmitDir/
cp geometry*.* $SubmitDir/
rm -rf $sdir
""",
Expand Down

0 comments on commit 355f6a3

Please sign in to comment.