Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The parallel sections of Comsol are based on the parallel shared memory model. The solvers, assembly and meshing in Comol Multiphysics and the linear algebra functions in Comsol script benefit from parallelism

No Format
##!/bin/bash
#PBS -m abe
#PBS -M emailID@griffithYourEmail@griffith.edu.au
#PBS -N TestRun_ComsolParallelComsol
#PBS -l select=1:ncpus=4:mpiprocs=4:mem=7g,walltime=24:00:00
## The number of nodeschunks is given by the select =<NUM > above
NODESCHUNKS=1
###$PBS_NODEFILE is a node-list file created with select and mpiprocs options by PBS
###### The number of threads available is ncpus * NODESCHUNKS (=NPROCS)
NPROCS=4
cd $PBS_O_WORKDIR
module load comsol/46.31
export COMSOL_NUM_THREADS=$NPROCS
comsol batch -np $NPROCS -inputfile model_in.mph -outputfile model_out.mph

...