#!/bin/bash
#SBATCH -t 00:10:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --gpus-per-node=4
#SBATCH -L ansys
#SBATCH -p gpu
#SBATCH --output="slurm.log.%j"
echo "Running on nodes: ${SLURM_JOB_NODELIST}"
module load ansys/2020r2
cat <<EOF > fluent.jou
; this is a Ansys journal file aka text user interface (TUI) file
parallel/gpgpu/show
file/read-cas initial_run.cas.h5
solve/iterate 10
file/write-case-data outputfile
ok
exit
EOF
fluent 2d -g -t${SLURM_NTASKS} -gpgpu=${SLURM_GPUS_PER_NODE} -mpi=intel -i fluent.jou >/dev/null 2>&1
echo '#################### Fluent finished ############' |