batch_rebuild_nemo_zenobe.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env bash
  2. #PBS -q main
  3. #PBS -r y
  4. #PBS -W group_list=ecearth
  5. #PBS -l walltime=01:50:00
  6. #PBS -l select=1:ncpus=24:ompthreads=24:mem=63000mb
  7. #PBS -M pierre-yves.barriat@uclouvain.be
  8. #PBS -m abe
  9. exec > ${PBS_O_WORKDIR-$PWD}/${PBS_JOBNAME-"local"}_${PBS_JOBID-"id"}.log
  10. echo "------------------ Job Info --------------------"
  11. echo "jobid : $PBS_JOBID"
  12. echo "jobname : $PBS_JOBNAME"
  13. echo "job type : $PBS_ENVIRONMENT"
  14. echo "submit dir : $PBS_O_WORKDIR"
  15. echo "queue : $PBS_O_QUEUE"
  16. echo "user : $PBS_O_LOGNAME"
  17. echo "threads : $OMP_NUM_THREADS"
  18. set -ue
  19. # Configure and load modules
  20. module purge
  21. PATH="/projects/acad/ecearth/opt/apps/lua/lua/bin:$PATH"
  22. . /projects/acad/ecearth/opt/lmod/lmod/init/profile
  23. module load CDO/1.7.2-foss-2016b NCO/4.6.0-foss-2016b netCDF-Fortran/4.4.4-foss-2016b
  24. cd /SCRATCH/acad/ecearth/pbarriat/TMP
  25. rm -rf EC05_01753152_restart_ice.nc EC05_01753152_restart_oce.nc nam_rebuild
  26. /home/acad/ucl-elic/pbarriat/modeles/ecearth/ecearth_3.3.0/sources/nemo-3.6/TOOLS/REBUILD_NEMO/rebuild_nemo -t 24 EC05_01753152_restart_oce 64
  27. /home/acad/ucl-elic/pbarriat/modeles/ecearth/ecearth_3.3.0/sources/nemo-3.6/TOOLS/REBUILD_NEMO/rebuild_nemo -t 24 EC05_01753152_restart_ice 64
  28. echo ----- REBUILD post finished