You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openfoam-nix/slurm-example-damBreak

16 lines
424 B
Bash

#!/usr/bin/env bash
#SBATCH -o slurm.out
#SBATCH -e slurm.err
#SBATCH -N 2
#SBATCH --ntasks-per-node 2
#SBATCH --partition=free-rider
# vuelca lista de nodos asignados a un archivo "nodefile"
nodelist=$(scontrol show hostname $SLURM_NODELIST) ; printf "%s\n" "${nodelist[@]}" > nodefile
# ejecuta mpirun con el nodefile creado
mpirun --hostfile nodefile interFoam -parallel
# limpia lista de hosts asignados
rm nodefile