Skip to content

Commit

Permalink
fix PPPL_PORTAL qsub file
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeshazer committed Apr 29, 2024
1 parent 71acc94 commit 46fa764
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platform/qsub/qsub.PPPL_PORTAL
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ echo "#SBATCH -e $SIMDIR/batch.err" >> $bfile
echo "#SBATCH -t $WALLTIME" >> $bfile
echo "#SBATCH -n $cores_used" >> $bfile

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

0 comments on commit 46fa764

Please sign in to comment.