Changeset 13682 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/launch_sasf.sh
- Timestamp:
- 2020-10-27T17:12:39+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/launch_sasf.sh
r13676 r13682 15 15 16 16 # Root directory NEMOGCM reference depository where to fetch compiled STATION_ASF nemo.exe + default namelists: 17 NEMO_REF_DIR=" /home/laurent/DEV/NEMO/NEMOGCM_dev_r13648_ASINTER-04_laurent_bulk_ice"17 NEMO_REF_DIR="`dirname ${PWD} | sed -e 's|/tests/STATION_ASF||g'`" ; # that should normally do the trick! 18 18 19 19 # NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe: … … 32 32 i_sea_ice=0 ; # default does not compute fluxes over sea-ice 33 33 # 34 #NFORC="ERA5_arctic" ; i_sea_ice=1 ; FORC="ERA5_arctic_surface_81N_36p75E_1h" ; # string sufficient to copy relevant files as in "*${FORC}*.nc"35 NFORC="PAPA" ; FORC="Station_PAPA_50N-145W" ; # string sufficient to copy relevant files as in "*${FORC}*.nc"34 NFORC="ERA5_arctic" ; i_sea_ice=1 ; FORC="ERA5_arctic_surface_81N_36p75E_1h" ; # string sufficient to copy relevant files as in "*${FORC}*.nc" 35 #NFORC="PAPA" ; FORC="Station_PAPA_50N-145W" ; # string sufficient to copy relevant files as in "*${FORC}*.nc" 36 36 37 37 … … 57 57 i_si3=0 58 58 FCPP="${SASF_WRK_DIR}/cpp_${CONFIG_BLD}.fcm" 59 if [ ! -f ${FCPP} ]; then echo " Mhhh, we did not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi59 if [ ! -f ${FCPP} ]; then echo " Mhhh, we could not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi 60 60 ca=`cat ${FCPP} | grep 'key_si3'` 61 61 … … 78 78 LIST_OA_ALGOS="ECMWF" ; # list of air-sea algorithms to test 79 79 LIST_IA_ALGOS="LG15 LU12 CSTC" ; # list of air-ice algorithms to test 80 DIR_NL=${NFORC}/ ice ; # where to fetch the namelists from...80 DIR_NL=${NFORC}/oce+ice ; # where to fetch the namelists from... 81 81 else 82 82 # Only OPEN-OCEAN/AIR flux computation … … 96 96 97 97 98 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => did not find directory 'input_data' with input forcing..."; exit; fi 98 CFGS_SHARED="${NEMO_REF_DIR}/cfgs/SHARED" 99 if [ ! -d ${CFGS_SHARED} ]; then echo "PROBLEM!!! => could not find directory ${CFGS_SHARED} !"; exit; fi 100 101 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => could not find directory 'input_data' with input forcing..."; exit; fi 99 102 100 103 cdt_cmpl="`\ls -l ${NEMO_EXE} | cut -d' ' -f 6,7,8`" … … 125 128 ################ 126 129 127 list_xml="iodef.xml file_def_nemo-oce.xml field_def_nemo-oce.xml" 130 list_xml_ref="field_def_nemo-oce.xml domain_def_nemo.xml grid_def_nemo.xml" 131 list_xml_cfg="iodef.xml file_def_nemo-oce.xml" 128 132 fcntxt="context_nemo_OCE.xml" 129 133 if [ ${i_sea_ice} -eq 1 ]; then 130 list_xml+=" file_def_nemo-ice.xml field_def_nemo-ice.xml" 134 list_xml_ref+=" field_def_nemo-ice.xml" 135 list_xml_cfg+=" file_def_nemo-ice.xml" 131 136 fcntxt="context_nemo_OCE+ICE.xml" 132 137 fi … … 137 142 138 143 # All remaining "*.xml" files: 139 for ff in ${list_xml } ; do144 for ff in ${list_xml_cfg} ; do 140 145 if [ ! -f ${SASF_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${SASF_EXPREF} !"; exit; fi 141 146 rsync -avPL ${SASF_EXPREF}/${ff} ${PROD_DIR}/ 142 147 done 143 144 145 # Getting reference/defaults files from reference NEMO distro: 146 rdir="${NEMO_REF_DIR}/cfgs/SHARED" 147 for ff in "domain_def_nemo.xml" "grid_def_nemo.xml"; do 148 if [ ! -f ${rdir}/${ff} ]; then echo " Mhhh, ${ff} not found into ${rdir} !"; exit; fi 149 ln -sf ${rdir}/${ff} ${PROD_DIR}/. 148 for ff in ${list_xml_ref} ; do 149 if [ ! -f ${CFGS_SHARED}/${ff} ]; then echo " Mhhh, ${ff} not found into ${CFGS_SHARED} !"; exit; fi 150 rsync -avPL ${CFGS_SHARED}/${ff} ${PROD_DIR}/ 150 151 done 151 152 … … 186 187 # The namelists: 187 188 rsync -avPL ${SASF_EXPREF}/${DIR_NL}/namelist_${scase}_cfg ${PROD_DIR}/namelist_cfg 188 rsync -avPL ${ SASF_EXPREF}/namelist_ref${PROD_DIR}/namelist_ref189 rsync -avPL ${CFGS_SHARED}/namelist_ref ${PROD_DIR}/namelist_ref 189 190 if [ ${i_sea_ice} -eq 1 ]; then 190 rsync -avPL ${SASF_EXPREF}/namelist_ice_ref ${PROD_DIR}/namelist_ice_ref191 191 rsync -avPL ${SASF_EXPREF}/namelist_ice_cfg ${PROD_DIR}/namelist_ice_cfg 192 rsync -avPL ${CFGS_SHARED}/namelist_ice_ref ${PROD_DIR}/namelist_ice_ref 192 193 fi 193 194
Note: See TracChangeset
for help on using the changeset viewer.