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.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			543 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			543 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
 | 
						|
 | 
						|
# Carga el perfil default de Nix
 | 
						|
source /nfs/home/gperez/openfoam-nix/openfoam.nix/openfoam-OpenFOAM-v2212/etc/bashrc
 | 
						|
 | 
						|
# 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
 |