Licences
comsol --help
Will display a list of COMSOL batch commands.
Useful Links
Batch Submission
When using COMSOL batch the following flags can be used to control distribution.
-mpibootstrap slurm |
Instructs COMSOL to get it's settings from SLURM |
-np <cpus> |
Number of CPUs to use in each task. Equivalent to slurm input --cpus-per-task or environment variable ${SLURM_CPUS_PER_TASK} |
-nn <tasks> |
Number of tasks total. --ntasks or ${SLURM_NTASKS} |
-nnhost <tasks> |
Number of tasks per node. --ntasks-per-node ${SLURM_NTASKS_PER_NODE} |
-f <path to hostlist> |
Host file. You wont't need to set this in most circumstances. |
Example Scripts
Serial ExampleSingle process with a single thread Usually submitted as part of an array, as in the case of parameter sweeps. |
|
Shared Memory Example
|
|
Distributed Memory Example
|
|
Hybrid Example
|
|
Important
If no output file is set, using
--outputthe input file will be updated instead.
Interactive Use
Providing you have set up X11, you can open the COMSOL GUI by running the command comsol.
Large jobs should not be run on the login node.
Recommendations
COMSOL is relatively smart with it's use of resources, if possible it is preferable to use --cpus-per-task over --ntasks