This version is outdated by a newer approved version.DiffThis version (2024/04/25 09:07) was approved by amelic.The Previously approved version (2024/04/03 07:55) is available.Diff

This is an old revision of the document!


More information about Comsol GUI applications and Comsol batch jobs here: TUCOLAB- Comsol

The following case is provided here including the appropriate batch-file:

Solely for the purpose of demonstrating how to use Comsol on a cluster.

Available version of Comsol can be found by executing the following line:

module avail Comsol

Currently on VSC-4 and VSC-5, these versions can be loaded:

  • Comsol/5.5
  • Comsol/5.6
  • Comsol/6.1
module load *your preferred module*

Typically, you would define your entire case either on the interactive access (using noMachine) or on your local machine, and then save it as a *.mph file (you also save this identical file as an output file). We recommend using noMachine because both the interactive access and the cluster itself have the same software packages installed. The *.mph file encapsulates all the necessary information required to successfully run a calculation on the cluster. The *.mph file contains all the necessary information required to successfully execute a calculation on the cluster. The computation results on the cluster will then be saved to the identical output file.

An example of a job script is provided below. The 'devel' partition was utilized for testing purposes; subsequently, if the job performs as desired, please select a different qos.

##Example for VSC5
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --job-name="karman"
#SBATCH --partition=zen3_0512
#SBATCH --qos=zen3_0512_devel


module purge
module load intel-mpi/2021.5.0 
module load Comsol/6.1


comsol -mpi intel -np 4 -nn 4 batch slurm -inputfile ${INPUTFILE} -outputfile ${OUTPUTFILE} -batchlog ${BATCHLOG} -alivetime 600

COMSOL is generating a huge amount of temporary files during the calculation. These files in general got saved in $HOME and then this error will be occuring. To avoid it, you have to change the path of $TMPDIR to e.g. /local. So the temporary files will be stored on the SSD-storage local to the compute node. To get rid of this error just augment the comsol command in the job script by the following option:

-tmpdir "/local"
sbatch karman.job

  • doku/comsol.1714036094.txt.gz
  • Last modified: 2024/04/25 09:08
  • by amelic