From 01cff7bde8ec2896fd75f51c3e252d78b562ba17 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Fri, 8 Nov 2024 16:38:15 +0100 Subject: [PATCH] feat: new bash to submit slurm for all examples --- examples/run_example.sh | 2 +- examples/slurm_allexamples.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100755 examples/slurm_allexamples.sh diff --git a/examples/run_example.sh b/examples/run_example.sh index 60583b06..00ba40cd 100755 --- a/examples/run_example.sh +++ b/examples/run_example.sh @@ -57,7 +57,7 @@ ${path2CLEO}/scripts/bash/build_cleo.sh ${buildtype} ${path2CLEO} ${path2build} ### ---------------------------------------------------- ### ### --------- compile executable(s) from scratch ---------- ### -cd ${path2build} && make clean +cd ${path2build} && make ${path2CLEO}/scripts/bash/compile_cleo.sh ${cleoenv} ${buildtype} ${path2build} "${executables}" ### ---------------------------------------------------- ### diff --git a/examples/slurm_allexamples.sh b/examples/slurm_allexamples.sh new file mode 100755 index 00000000..85b47088 --- /dev/null +++ b/examples/slurm_allexamples.sh @@ -0,0 +1,27 @@ +#!/bin/bash +#SBATCH --job-name=allexamples +#SBATCH --partition=compute +#SBATCH --nodes=1 +#SBATCH --ntasks-per-node=16 +#SBATCH --mem=30G +#SBATCH --time=00:05:00 +#SBATCH --mail-user=clara.bayley@mpimet.mpg.de +#SBATCH --mail-type=FAIL +#SBATCH --account=bm1183 +#SBATCH --output=./allexamples_out.%j.out +#SBATCH --error=./allexamples_err.%j.out + +path2CLEO=$1 + +sbatch ${path2CLEO}/examples/adiabaticparcel/as2017.sh +sbatch ${path2CLEO}/examples/adiabaticparcel/cuspbifurc.sh +sbatch ${path2CLEO}/examples/boxmodelcollisions/shima2009.sh +sbatch ${path2CLEO}/examples/boxmodelcollisions/breakup.sh +#sbatch ${path2CLEO}/examples/bubble3d/bubble3d.sh # TODO(CB): complete +sbatch ${path2CLEO}/examples/constthermo2d/constthermo2d.sh +sbatch ${path2CLEO}/examples/divfreemotion/divfree2d.sh +sbatch ${path2CLEO}/examples/eurec4a1d/eurec4a1d.sh +sbatch ${path2CLEO}/examples/fromfile/fromfile.sh +sbatch ${path2CLEO}/examples/fromfile_irreg/fromfile_irreg.sh +sbatch ${path2CLEO}/examples/rainshaft1d/rainshaft1d.sh +sbatch ${path2CLEO}/examples/speedtest/speedtest.sh