#!/bin/bash
#OAR -n <jobid>-<jobd>
#OAR -l core=<cpuspertask>,walltime=<time>
##OAR -p 'thread_per_core=<taskspercore>'   # DOES NOT EXIST/WORK
<turnonconstraint>#OAR -p '<constraint>'
<turnonnodescratch>#OAR -p '<nodescratchfolder>=<nodescratchspace>'
<turnonmailtype>#OAR --notify '<mailtype>'
<turnonemailaddress>#OAR --mail '<emailaddress>'
#OAR -O <outpath>
#OAR -E <errpath>
#<turnonexclusiveness>#OAR -l nodes=1,walltime=<time> -p 'exclusive='YES'' # CANNOT HAVE MULTIPLE -l LINES
#<turnonmem>#OAR -l mem=<mem>
#<turnonmempercpu>#OAR -l mem_per_core=<mempercpu>

<singularity_module_load>

export SINGULARITY_BINDPATH="<main_path>"

<extra_outer_statements>

<singularity_command>bash <exedir>/<inner_manager>
