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 13686 for NEMO/branches/2020/dev_r13648_ASINTER-04_laurent_bulk_ice/tests/STATION_ASF/EXPREF/sbcblk_sanity_check.sh – NEMO

Ignore:
Timestamp:
2020-10-28T10:56:07+01:00 (3 years ago)
Author:
laurent
Message:

Improvements for "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/sbcblk_sanity_check.sh

    r13682 r13686  
    7070i_si3=0 
    7171FCPP="${SASF_WRK_DIR}/cpp_${CONFIG_BLD}.fcm" 
    72 if [ ! -f ${FCPP} ]; then echo " Mhhh, we did not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi 
     72if [ ! -f ${FCPP} ]; then echo " Mhhh, we could not find 'cpp_STATION_ASF.fcm' into `dirname ${FCPP}` !"; exit; fi 
    7373ca=`cat ${FCPP} | grep 'key_si3'` 
    7474 
     
    9595 
    9696 
    97 if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => did not find directory 'input_data' with input forcing..."; exit; fi 
     97CFGS_SHARED="${NEMO_REF_DIR}/cfgs/SHARED" 
     98if [ ! -d ${CFGS_SHARED} ]; then echo "PROBLEM!!! => could not find directory ${CFGS_SHARED} !"; exit; fi 
     99 
     100if [ ! -d ${DATA_IN_DIR} ]; then echo "PROBLEM!!! => could not find directory 'input_data' with input forcing..."; exit; fi 
    98101 
    99102cdt_cmpl="`\ls -l ${NEMO_EXE} | cut -d' ' -f 6,7,8`" 
     
    124127################ 
    125128 
    126 list_xml="iodef.xml file_def_nemo-oce.xml field_def_nemo-oce.xml" 
     129list_xml_ref="field_def_nemo-oce.xml domain_def_nemo.xml grid_def_nemo.xml" 
     130list_xml_cfg="iodef.xml file_def_nemo-oce.xml" 
    127131fcntxt="context_nemo_OCE.xml" 
    128132if [ ${i_sea_ice} -eq 1 ]; then 
    129     list_xml+=" file_def_nemo-ice.xml field_def_nemo-ice.xml" 
     133    list_xml_ref+=" field_def_nemo-ice.xml" 
     134    list_xml_cfg+=" file_def_nemo-ice.xml" 
    130135    fcntxt="context_nemo_OCE+ICE.xml" 
    131136fi 
     
    136141 
    137142# All remaining "*.xml" files: 
    138 for ff in ${list_xml} ; do 
     143for ff in ${list_xml_cfg} ; do 
    139144    if [ ! -f ${SASF_EXPREF}/${ff} ]; then echo " Mhhh, ${ff} not found into ${SASF_EXPREF} !"; exit; fi 
    140145    rsync -avPL ${SASF_EXPREF}/${ff} ${PROD_DIR}/ 
    141146done 
    142  
    143  
    144 # Getting reference/defaults files from reference NEMO distro: 
    145 rdir="${NEMO_REF_DIR}/cfgs/SHARED" 
    146 for ff in "domain_def_nemo.xml" "grid_def_nemo.xml"; do 
    147     if [ ! -f ${rdir}/${ff} ]; then echo " Mhhh, ${ff} not found into ${rdir} !"; exit; fi 
    148     ln -sf ${rdir}/${ff} ${PROD_DIR}/. 
     147for ff in ${list_xml_ref} ; do 
     148    if [ ! -f ${CFGS_SHARED}/${ff} ]; then echo " Mhhh, ${ff} not found into ${CFGS_SHARED} !"; exit; fi 
     149    rsync -avPL ${CFGS_SHARED}/${ff} ${PROD_DIR}/ 
    149150done 
    150151 
     
    175176        # The namelists: 
    176177        rsync -avPL ${SASF_EXPREF}/${DIR_NL}/namelist_${scase}_cfg ${PROD_DIR}/namelist_cfg 
    177         rsync -avPL ${SASF_EXPREF}/namelist_ref                   ${PROD_DIR}/namelist_ref 
     178        rsync -avPL ${CFGS_SHARED}/namelist_ref                    ${PROD_DIR}/namelist_ref 
    178179     
    179180        cd ${PROD_DIR}/ 
Note: See TracChangeset for help on using the changeset viewer.