forked from NAG-DevOps/speed-hpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfluent.sh
More file actions
executable file
·32 lines (22 loc) · 813 Bytes
/
fluent.sh
File metadata and controls
executable file
·32 lines (22 loc) · 813 Bytes
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
#!/encs/bin/tcsh
#SBATCH --job-name=flu10000 ## Give the job a name
#SBATCH --mail-type=ALL ## Receive all email type notifications
#SBATCH --chdir=./ ## Use currect directory as working directory
#SBATCH --nodes=1 ## Number of nodes to run on
#SBATCH --ntasks-per-node=32 ## Number of cores
#SBATCH --cpus-per-task=1 ## Number of MPI threads
#SBATCH --mem=160G ## Assign 160G memory per node
date
module avail ansys
module load ansys/2023R2/default
cd $TMPDIR
set FLUENTNODES = "`scontrol show hostnames`"
set FLUENTNODES = `echo $FLUENTNODES | tr ' ' ','`
date
srun fluent 3ddp \
-g -t$SLURM_NTASKS \
-g-cnf=$FLUENTNODES \
-i $SLURM_SUBMIT_DIR/fluentdata/info.jou > call.txt
date
srun rsync -av $TMPDIR/ $SLURM_SUBMIT_DIR/fluentparallel/
date