COMSOL

Sample job file for running Comsol serial job for single CPU:

File Name : comsol.cmd

#!/bin/bash

#@ output = test.out

#@ error = test.err

#@ job_type = serial

#@ class = Small

#@ environment = COPY_ALL

#@ queue

Jobid=`echo $LOADL_STEP_ID | cut -f 6 -d .`

tmpdir=$HOME/scratch/job$Jobid

mkdir -p $tmpdir; cd $tmpdir

cp -R $LOADL_STEP_INITDIR/* $tmpdir

comsol batch -inputfile infile.mph -outputfile out.mph -job b1 -batchlog out.log

mv ../job$Jobid $LOADL_STEP_INITDIR

In the command prompt, type the command, llsubmit comsol.cmd