New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 13682 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/launch_sasf.sh – NEMO

Ignore:
Timestamp:
2020-10-27T17:12:39+01:00 (3 years ago)
Author:
laurent
Message:

Still improving the oce+ice capable STATION_ASF...

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  
    1515 
    1616# 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" 
     17NEMO_REF_DIR="`dirname ${PWD} | sed -e 's|/tests/STATION_ASF||g'`" ; # that should normally do the trick! 
    1818 
    1919# NEMOGCM root directory where to fetch compiled STATION_ASF nemo.exe: 
     
    3232i_sea_ice=0 ; # default does not compute fluxes over sea-ice 
    3333# 
    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" 
     34NFORC="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" 
    3636 
    3737 
     
    5757i_si3=0 
    5858FCPP="${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; fi 
     59if [ ! -f ${FCPP} ]; then echo " Mhhh, we could not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi 
    6060ca=`cat ${FCPP} | grep 'key_si3'` 
    6161 
     
    7878    LIST_OA_ALGOS="ECMWF" ;          # list of air-sea algorithms to test 
    7979    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... 
    8181else 
    8282    # Only OPEN-OCEAN/AIR flux computation 
     
    9696 
    9797 
    98 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => did not find directory 'input_data' with input forcing..."; exit; fi 
     98CFGS_SHARED="${NEMO_REF_DIR}/cfgs/SHARED" 
     99if [ ! -d ${CFGS_SHARED} ]; then echo "PROBLEM!!! => could not find directory ${CFGS_SHARED} !"; exit; fi 
     100 
     101if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => could not find directory 'input_data' with input forcing..."; exit; fi 
    99102 
    100103cdt_cmpl="`\ls -l ${NEMO_EXE} | cut -d' ' -f 6,7,8`" 
     
    125128################ 
    126129 
    127 list_xml="iodef.xml file_def_nemo-oce.xml field_def_nemo-oce.xml" 
     130list_xml_ref="field_def_nemo-oce.xml domain_def_nemo.xml grid_def_nemo.xml" 
     131list_xml_cfg="iodef.xml file_def_nemo-oce.xml" 
    128132fcntxt="context_nemo_OCE.xml" 
    129133if [ ${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" 
    131136    fcntxt="context_nemo_OCE+ICE.xml" 
    132137fi 
     
    137142 
    138143# All remaining "*.xml" files: 
    139 for ff in ${list_xml} ; do 
     144for ff in ${list_xml_cfg} ; do 
    140145    if [ ! -f ${SASF_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${SASF_EXPREF} !"; exit; fi 
    141146    rsync -avPL ${SASF_EXPREF}/${ff} ${PROD_DIR}/ 
    142147done 
    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}/. 
     148for 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}/ 
    150151done 
    151152 
     
    186187        # The namelists: 
    187188        rsync -avPL ${SASF_EXPREF}/${DIR_NL}/namelist_${scase}_cfg ${PROD_DIR}/namelist_cfg 
    188         rsync -avPL ${SASF_EXPREF}/namelist_ref                   ${PROD_DIR}/namelist_ref 
     189        rsync -avPL ${CFGS_SHARED}/namelist_ref                    ${PROD_DIR}/namelist_ref 
    189190        if [ ${i_sea_ice} -eq 1 ]; then 
    190             rsync -avPL ${SASF_EXPREF}/namelist_ice_ref ${PROD_DIR}/namelist_ice_ref 
    191191            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 
    192193        fi 
    193194         
Note: See TracChangeset for help on using the changeset viewer.