Skip to content

Commit

Permalink
Arsene's fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Candy committed Sep 21, 2024
1 parent 1902e60 commit 5be32c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/qsub/qsub.OMEGA_INTEL
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

bfile=$SIMDIR/batch.src
echo "#!/bin/bash -l" > $bfile
echo "#SBATCH -J $LOCDIR" >> $bfile
Expand All @@ -7,10 +6,12 @@ echo "#SBATCH -e $SIMDIR/batch.err" >> $bfile
echo "#SBATCH -t $WALLTIME" >> $bfile
echo "#SBATCH -n $cores_used" >> $bfile

# Corrected section
if [ -n "$MEMPERNODE" ]
then
echo "#SBATCH --mem $MEMPERNODE" >> $bfile
elif [ -n "$MEMPERCPU" ]
then
echo "#SBATCH --mem-per-cpu $MEMPERCPU" >> $bfile
else
echo "#SBATCH --mem-per-cpu 16GB" >> $bfile
Expand Down

0 comments on commit 5be32c3

Please sign in to comment.