#!/bin/bash
#SBATCH --nodes=1                      #Numero de Nós
#SBATCH --ntasks-per-node=1            #Numero de tarefas por Nó
#SBATCH --cpus-per-task=24             #Numero de threads por tarefa MPI
#SBATCH -p treinamento_phi             #Fila (partition) a ser utilizada
#SBATCH -J semana-sdumont-xeonphi      #Nome job
#SBATCH --exclusive                    #Utilização exclusiva dos nós durante a execução do job


########################################################################
#                                                                      #
# USAGE: sbatch run.sh EXECUTÁVEL GAMA TEMPO_FINAL DELTA_T VEL_X VEL_Y #
#                                                                      #
########################################################################               

source /scratch/app/modulos/intel-psxe-2017.1.043.sh

EXEC=${1}
GAMA=${2}
TEMPO_FINAL=${3}
DELTA_T=${4}
VEL_X=${5}
VEL_Y=${6}

srun -n $SLURM_NTASKS ${EXEC} ${GAMA} ${TEMPO_FINAL} ${DELTA_T} ${VEL_X} ${VEL_Y}
