Changeset 13751 for NEMO/branches/2020/test_12905_xios_restart/tests/STATION_ASF/EXPREF/launch_sasf.sh
- Timestamp:
- 2020-11-09T16:48:35+01:00 (4 years ago)
- Location:
- NEMO/branches/2020/test_12905_xios_restart
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/test_12905_xios_restart
- Property svn:externals
-
old new 3 3 ^/utils/build/mk@HEAD mk 4 4 ^/utils/tools@HEAD tools 5 ^/vendors/AGRIF/dev @HEADext/AGRIF5 ^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS ext/AGRIF 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL 8 8 9 9 # SETTE 10 ^/utils/CI/ r12931_sette_ticket2462@HEADsette10 ^/utils/CI/sette@13559 sette
-
- Property svn:externals
-
NEMO/branches/2020/test_12905_xios_restart/tests/STATION_ASF/EXPREF/launch_sasf.sh
r12615 r13751 1 1 #!/bin/bash 2 2 3 # NEMO directory where to fetch compiled STATION_ASF nemo.exe + setup: 4 NEMO_DIR=`pwd | sed -e "s|/tests/STATION_ASF/EXPREF||g"` 3 ################################################################ 4 # 5 # Script to launch a set of STATION_ASF simulations 6 # 7 # L. Brodeau, 2020 8 # 9 ################################################################ 5 10 6 echo "Using NEMO_DIR=${NEMO_DIR}" 7 8 # what directory inside "tests" actually contains the compiled test-case? 11 # What directory inside "tests" actually contains the compiled "nemo.exe" for STATION_ASF ? 9 12 TC_DIR="STATION_ASF2" 10 13 11 # => so the executable to use is: 12 NEMO_EXE="${NEMO_DIR}/tests/${TC_DIR}/BLD/bin/nemo.exe" 14 expdir=`basename ${PWD}`; # we expect "EXPREF" or "EXP00" normally... 15 16 # NEMOGCM root directory: 17 NEMO_ROOT_DIR=`pwd | sed -e "s|/tests/STATION_ASF/${expdir}||g"` 18 19 # NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe: 20 SASF_WRK_DIR="${NEMO_ROOT_DIR}/tests/${TC_DIR}" 13 21 14 22 # Directory where to run the simulation: 15 WORK_DIR="${HOME}/tmp/STATION_ASF"23 PROD_DIR="${HOME}/tmp/STATION_ASF" 16 24 17 25 18 # FORC_DIR => Directory containing sea-surface + atmospheric forcings 19 # (get it there https://drive.google.com/file/d/1MxNvjhRHmMrL54y6RX7WIaM9-LGl--ZP/): 20 if [ `hostname` = "merlat" ]; then 21 FORC_DIR="/MEDIA/data/STATION_ASF/input_data_STATION_ASF_2016-2018" 22 elif [ `hostname` = "luitel" ]; then 23 FORC_DIR="/data/gcm_setup/STATION_ASF/input_data_STATION_ASF_2016-2018" 24 elif [ `hostname` = "ige-meom-cal1" ]; then 25 FORC_DIR="/mnt/meom/workdir/brodeau/STATION_ASF/input_data_STATION_ASF_2016-2018" 26 elif [ `hostname` = "salvelinus" ]; then 27 FORC_DIR="/opt/data/STATION_ASF/input_data_STATION_ASF_2016-2018" 28 else 29 echo "Boo!"; exit 30 fi 31 #====================== 32 mkdir -p ${WORK_DIR} 26 ####### End of normal user configurable section ####### 27 28 #================================================================================ 29 30 SASF_REF_DIR="${NEMO_ROOT_DIR}/tests/STATION_ASF" 31 if [ ! -d ${SASF_REF_DIR} ]; then echo " Mhhh, no EXPREF directory ${SASF_REF_DIR} !"; exit; fi 32 33 # NEMO executable to use is: 34 NEMO_EXE="${SASF_WRK_DIR}/BLD/bin/nemo.exe" 35 if [ ! -f ${NEMO_EXE} ]; then echo " Mhhh, no compiled 'nemo.exe' found into `dirname ${NEMO_EXE}` !"; exit; fi 36 37 DATA_IN_DIR="${SASF_REF_DIR}/input_data" ; # Directory containing sea-surface + atmospheric input data 38 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => did not find directory 'input_data' with input forcing..."; exit; fi 39 40 SASF_EXPREF=${SASF_REF_DIR}/${expdir} ; # STATION_ASF EXPREF directory from which to use namelists and XIOS xml files... 41 if [ ! -d ${SASF_EXPREF} ]; then echo " Mhhh, no ${expdir} directory ${SASF_EXPREF} !"; exit; fi 33 42 34 43 35 if [ ! -f ${NEMO_EXE} ]; then echo " Mhhh, no compiled nemo.exe found into ${NEMO_DIR}/tests/STATION_ASF/BLD/bin !"; exit; fi 44 echo "###########################################################" 45 echo "# S T A T I O N A i r - S e a F l u x #" 46 echo "###########################################################" 47 echo 48 echo " * NEMO reference root directory is: ${NEMO_ROOT_DIR}" 49 echo " * STATION_ASF work directory is: ${SASF_WRK_DIR}" 50 echo " ==> NEMO EXE to use: ${NEMO_EXE}" 51 echo 52 echo " * Input forcing data into: ${DATA_IN_DIR}" 53 echo " * Production will be done into: ${PROD_DIR}" 54 echo " * Directory in which namelists and xml files are fetched:" 55 echo " ==> ${SASF_EXPREF}" 56 echo 36 57 37 NEMO_EXPREF="${NEMO_DIR}/tests/STATION_ASF/EXPREF" 38 if [ ! -d ${NEMO_EXPREF} ]; then echo " Mhhh, no EXPREF directory ${NEMO_EXPREF} !"; exit; fi 58 mkdir -p ${PROD_DIR} 39 59 40 rsync -avP ${NEMO_EXE} ${ WORK_DIR}/60 rsync -avP ${NEMO_EXE} ${PROD_DIR}/ 41 61 42 62 for ff in "context_nemo.xml" "domain_def_nemo.xml" "field_def_nemo-oce.xml" "file_def_nemo-oce.xml" "grid_def_nemo.xml" "iodef.xml" "namelist_ref"; do 43 if [ ! -f ${ NEMO_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${NEMO_EXPREF} !"; exit; fi44 rsync -avPL ${ NEMO_EXPREF}/${ff} ${WORK_DIR}/63 if [ ! -f ${SASF_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${SASF_EXPREF} !"; exit; fi 64 rsync -avPL ${SASF_EXPREF}/${ff} ${PROD_DIR}/ 45 65 done 46 66 47 67 # Copy forcing to work directory: 48 rsync -avP ${ FORC_DIR}/Station_PAPA_50N-145W*.nc ${WORK_DIR}/68 rsync -avP ${DATA_IN_DIR}/Station_PAPA_50N-145W*.nc ${PROD_DIR}/ 49 69 50 70 for CASE in "ECMWF" "COARE3p6" "NCAR" "ECMWF-noskin" "COARE3p6-noskin"; do … … 58 78 scase=`echo "${CASE}" | tr '[:upper:]' '[:lower:]'` 59 79 60 rm -f ${ WORK_DIR}/namelist_cfg61 rsync -avPL ${ NEMO_EXPREF}/namelist_${scase}_cfg ${WORK_DIR}/namelist_cfg80 rm -f ${PROD_DIR}/namelist_cfg 81 rsync -avPL ${SASF_EXPREF}/namelist_${scase}_cfg ${PROD_DIR}/namelist_cfg 62 82 63 cd ${ WORK_DIR}/83 cd ${PROD_DIR}/ 64 84 echo 65 85 echo "Launching NEMO !"
Note: See TracChangeset
for help on using the changeset viewer.