Difference between revisions of "Comsol Guide"

From Storrs HPC Wiki
Jump to: navigation, search
(Run Comsol with Slurm)
Line 9: Line 9:
  
 
=== Run Comsol with Slurm ===
 
=== Run Comsol with Slurm ===
SLURM is available only on hornet-login2.engr.uconn.edu. Please login to the right node first:
+
SLURM is available only on login.storrs.hpc.uconn.edu. Please login to the right node first:
  $ ssh <NetID>@hornet-login3.engr.uconn.edu
+
  $ ssh <NetID>@login.storrs.hpc.uconn.edu $ module load intelics/2013.1.039-compiler zlib/1.2.8-ics mpi/mvapich2/2.0a-ics-slurm comsol/5.1
$ module load intelics/2013.1.039-compiler zlib/1.2.8-ics mpi/mvapich2/2.0a-ics-slurm comsol/5.1
 
 
To run comsol with SLURM, please create following comsol.sh:
 
To run comsol with SLURM, please create following comsol.sh:
 
  #!/bin/bash
 
  #!/bin/bash

Revision as of 17:26, 19 February 2016

Modules Required

 comsol/4.3a
 mpi/mpich2/1.4.1p1-ics
 intelics/2012.0.032

The command to load comsol:

$ module load intelics/2012.0.032 mpi/mpich2/1.4.1p1-ics comsol/4.3a

Run Comsol with Slurm

SLURM is available only on login.storrs.hpc.uconn.edu. Please login to the right node first:

$ ssh <NetID>@login.storrs.hpc.uconn.edu $ module load intelics/2013.1.039-compiler zlib/1.2.8-ics mpi/mvapich2/2.0a-ics-slurm comsol/5.1

To run comsol with SLURM, please create following comsol.sh:

#!/bin/bash

# Ask for a number of compute nodes
#SBATCH -N 2 #specify the number of nodes to change total number of cores
#DO NOT CHANGE the following two lines
#SBATCH -c12
#SBATCH --ntasks-per-node=1

# Submit to a partition 
#SBATCH -p Westmere

# Set your email address to be notified of jobs updates
#SBATCH --mail-type=ALL
#SBATCH --mail-user=your@email.address

# Details of your input and output files
INPUTFILE=/path/to/input_model.mph
OUTPUTFILE=/path/to/output_model.mph
TMPDIR=


######## DO NOT EDIT BELOW THIS LINE ########
# check if tmpdir exists
if [ ! -z $TMPDIR ]; then 
  TMPDIR="-tmpdir $TMPDIR"
fi
## Now, run COMSOL in batch mode with the input and output detailed above.
comsol -clustersimple batch -inputfile $INPUTFILE -outputfile $OUTPUTFILE $TMPDIR

Then submit the script by issuing:

$ sbatch comsol.sh