Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagebash
titleThis is an example for a parallel job
#!/bin/bash
#SBATCH -t 00:10:00
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=40
#SBATCH -p medium
#SBATCH --mail-type=ALL
#SBATCH --job-name=StarCCM

module load starccm/14.04.011-r8

## create the host list for starccm+
srun hostname -s | sort | uniq -c | awk '{ print $2":"$1 }' > starhosts.${SLURM_JOB_ID}

export CDLMD_LICENSE_FILE=1999@flex.cd-adapco.com
export PODKEY=<type your podkey here>
export MYCASE=<type your sim file name>

## run starccm+
starccm+ -dp -np ${SLURM_NTASKS} -batch ${MYCASE} \
 -power -podkey ${PODKEY} -licpath ${CDLMD_LICENSE_FILE} \
 -machinefile starhosts.${SLURM_JOB_ID} -mpi intel 

echo '#################### StarCCM+ finished ############'
rm starhosts.$SLURM_JOB_ID

...