#!/bin/bash

#SBATCH --time=01:00:00
#SBATCH --nodes=32
#SBATCH --exclusive
#SBATCH --ntasks-per-node=8
#SBATCH --cpus-per-task=7
#SBATCH --output=nemo-%J.out
#SBATCH --error=nemo-%J.err
#SBATCH --partition=dev-g
#SBATCH --account=project_465000454
#SBATCH --gpus-per-node=8

export EXPID=$SLURM_JOB_ID
export NEMO_REBUILD_EXE=${NEMO_REBUILD_EXE:-"/pfs/lustrep3/scratch/project_465000454/kkeller/lab/rebuild_nemo/nemo/tools/REBUILD_NEMO/BLD/bin/mpp_rebuild_nemo.exe"}

ROOTDIR="$(git rev-parse --show-toplevel)"
SCRIPTDIR="$ROOTDIR/scripts"

exp=$(bash $SCRIPTDIR/create_experiment.sh)

cd $exp

. env.sh

srun ./nemo

#bash rebuild.slurm
