#!/bin/bash
#SBATCH --partition=lts
#SBATCH --job-name="MHKT"
#SBATCH -t 1:00:00
#SBATCH --ntasks-per-node=20
#SBATCH --nodes=2
#SBATCH --mem=40GB
#SBATCH --mail-type=ALL
#SBATCH --mail-user=youremailid@lehigh.edu
#SBATCH --output="fluent.%j.%N.out"
# The Journal file
JOURNALFILE=FLUENT.in
module load ansys/17.1
if [ -z "$SLURM_NPROCS" ]; then
N=$(( $(echo $SLURM_TASKS_PER_NODE | sed -r 's/([0-9]+)\(x([0-9]+)\)/\1 * \2/') ))
else
N=$SLURM_NPROCS
fi
echo -e "N: $N\n";
# run fluent in batch on the allocated node(s)
/share/Apps/ansys/v171/fluent/bin/fluent 3ddp -g -slurm -t$N -mpi=pcmpi -pib -i $JOURNALFILE > log.fluent
|