batch.sh 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/usr/bin/env bash
  2. #SBATCH --job-name=barakuda
  3. #SBATCH --time=47:55:00
  4. ##SBATCH --time=05:55:00
  5. #SBATCH --ntasks=1
  6. #SBATCH --mem-per-cpu=2048
  7. ##SBATCH --partition=debug
  8. #
  9. ##SBATCH --mail-user=noname@uclouvain.be
  10. ##SBATCH --mail-type=ALL
  11. ##SBATCH --open-mode=append
  12. set -ueo pipefail
  13. stdout_file=${SLURM_SUBMIT_DIR-$PWD}/${SLURM_JOB_NAME-"local"}_${SLURM_JOB_ID-"id"}.log
  14. exec > ${stdout_file}
  15. echo "------------------ Job Info --------------------"
  16. echo "jobid : ${SLURM_JOB_ID-"id"}"
  17. echo "jobname : ${SLURM_JOB_NAME-"local"}"
  18. echo "submit dir : ${SLURM_SUBMIT_DIR-$PWD}"
  19. set -ue
  20. exp="NE4_70"
  21. starting_year=1800
  22. slice=5
  23. path_out="/scratch/ucl/elic/pbarriat/nemo/archive/${exp}"
  24. path_exe="/home/ucl/elic/pbarriat/modeles/barakuda"
  25. ###
  26. # Configure and load modules
  27. module purge
  28. module load releases/2018b use.own
  29. module load netCDF-Fortran/4.4.4-foss-2018b ELIC_Python/1-foss-2018b-Python-2.7.15
  30. module load ImageMagick/7.0.8-11-GCCcore-7.3.0 FFmpeg/4.1-foss-2018b
  31. cd ${path_exe}
  32. ./barakuda.sh -C ORCA1_L75_NEMO4_lm3 -R ${exp} -f ${slice} -y ${starting_year}
  33. # IF grep "Diagnostics built and saved" *
  34. ./barakuda.sh -C ORCA1_L75_NEMO4_lm3 -R ${exp} -f ${slice} -y ${starting_year} -e
  35. echo ----- BARAKUDA post finished