Skip to content

Commit

Permalink
feat: new bash to submit slurm for all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Nov 8, 2024
1 parent 9082a66 commit 01cff7b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/run_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
### ---------------------------------------------------- ###

Expand Down
27 changes: 27 additions & 0 deletions examples/slurm_allexamples.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]
#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

0 comments on commit 01cff7b

Please sign in to comment.