Translations:Ansys/2910/en: Difference between revisions
Jump to navigation
Jump to search
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 1: | Line 1: | ||
# Specify 2d, 2ddp, 3d or 3ddp and your journal filename | # Specify 2d, 2ddp, 3d or 3ddp and your journal filename ... | ||
fluent | if [ "$SLURM_NNODES" == 1 ]; then | ||
fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou | |||
else | |||
fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou | |||
fi | |||
if [ $? -eq 0 ]; then | if [ $? -eq 0 ]; then | ||
echo "Job completed successfully! Exiting now." | echo "Job completed successfully! Exiting now." |
Revision as of 14:49, 7 October 2022
- Specify 2d, 2ddp, 3d or 3ddp and your journal filename ...
if [ "$SLURM_NNODES" == 1 ]; then
fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
else
fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou
fi if [ $? -eq 0 ]; then
echo "Job completed successfully! Exiting now." scancel $SLURM_ARRAY_JOB_ID
else
echo "Job attempt $SLURM_ARRAY_TASK_ID of $SLURM_ARRAY_TASK_COUNT failed due to license or simulation issue!" if [ $SLURM_ARRAY_TASK_ID -lt $SLURM_ARRAY_TASK_COUNT ]; then echo "Resubmitting job now ..." else echo "All job attempts failed exiting now." fi
fi }} </tab> </tabs>