...
A basic batch script for Comsol, that runs on the cpu-compute-long queue, asking for 32 CPU cores and 64GB of RAM:
#BSUB -N
#BSUB -R '(!gpu)'
#BSUB -n 32
#BSUB -R "rusage[mem=64]"
#BSUB -o outputfilename.log Output_%J.out #BSUB -e Error_%J.err
#BSUB -J comsolJob
#BSUB -R "span[hosts=1]"
#BSUB -q cpu-compute-long
module add comsol
mkdir /scratch/long/$USER.$LSB_JOBID
comsol batch comsol batch -np 32 -inputfile wrench.mph -outputfile wrench_out.mph -tmpdir /scratch/long/$USER.$LSB_JOBID -recoverydir /scratch/long/$USER.$LSB_JOBID
...