-
Notifications
You must be signed in to change notification settings - Fork 2
/
SBATCH_Submit.sh
34 lines (29 loc) · 922 Bytes
/
SBATCH_Submit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
## Specifying a job name
#SBATCH --job-name=ANSYS_test
## Reserving one node and 2 cpus
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=2
## Reserving a specific node "node004" and 36 cpus (uncomment if needed)
##SBATCH --nodelist=node004
#SBATCH --time=00:05:00
#SBATCH --account=PNS0496
#SBATCH --mem=5GB
#SBATCH [email protected]
#SBATCH --mail-type=END,FAIL
#SBATCH --error=./error_%j.txt
#SBATCH --output=./output_%j.txt
echo Working directory is $SLURM_SUBMIT_DIR
echo Job name is $SLURM_JOB_NAME
cd $SLURM_SUBMIT_DIR
echo Running on host `hostname`
echo Time is `date`
echo Directory is `pwd`
echo The following processors are allocated to this job:
echo $SLURM_JOB_NODELIST
NP=$SLURM_NTASKS
# run the simulation
export OMP_NUM_THREADS=2
# Load the module for ansys appropriate installation if necessary
module load ansys/2020R2
fluent 2ddp -t$OMP_NUM_THREADS -g -i ./Example.jou output.txt