job.ksh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #!/bin/ksh
  2. set -x
  3. #####################################################
  4. # CONFIGURATION CHOICE #
  5. #####################################################
  6. #CONFIG=ORCA2_LIM GYRE
  7. CONFIG=ORCA2_LIM
  8. #####################################################
  9. # CONFIGURATION DESCRIPTION #
  10. #####################################################
  11. # each configuration is defined by:
  12. # - INSPACE: directory the coordinate netcdf file is
  13. # - COOR_FIL: configuration's coordinate netcdf file
  14. # - LIST: configuration's list of sections
  15. #
  16. #####################################################
  17. case $CONFIG in
  18. #
  19. ORCA2_LIM)
  20. INSPACE=/dataref/rd/INITIALISATION/ORCA2
  21. COOR_FIL=coordinates.nc
  22. LIST=list_sections.ascii_global
  23. ;;
  24. #
  25. GYRE)
  26. INSPACE=/perm/ms/fr/ar5
  27. COOR_FIL=mesh_mask.nc
  28. LIST=list_sections.ascii_GYRE
  29. ;;
  30. #
  31. esac
  32. #####################################################
  33. # RUN #
  34. #####################################################
  35. BIN=diadct_sections.exe
  36. export CTLDIR=`pwd`
  37. cd ${CTLDIR}
  38. rm -f coordinates.nc ${BIN} list_sections.ascii
  39. cp ../${BIN} .
  40. ln -sf ${LIST} list_sections.ascii
  41. ln -s $INSPACE/$COOR_FIL ./coordinates.nc
  42. ./${BIN}
  43. mv section_ijglobal.diadct section_ijglobal.diadct_$CONFIG