Changeset 3866


Ignore:
Timestamp:
05/30/18 12:03:13 (6 years ago)
Author:
cetlod
Message:

Improving script model to add PISCES Offline configruration for eORCA1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/model

    r3817 r3866  
    352352    d_m1=${d_m}/modeles/NEMOGCM/CONFIG 
    353353    cfg_file=${d_m1}/cfg.txt 
    354     list_cfg='ORCA1_LIM3_PISCES eORCA025_LIM3 eORCA025_LIM3_PISCES' 
     354    list_cfg='ORCA1_LIM3_PISCES eORCA025_LIM3 eORCA025_LIM3_PISCES ORCA1_OFF_PISCES' 
    355355    # Creates configuration ORCA1_LIM3_PISCES 
    356356    # (see https://forge.ipsl.jussieu.fr/shaconemo/wiki/README_ORCA1_LIM3_PISCES ) 
     
    362362           if [[ ${err} = 1 ]] ; then 
    363363              pis=`echo ${cfg} | grep "PISCES" | wc -l` 
     364              off=`echo ${cfg} | grep "OFF"    | wc -l` 
    364365              if [[ ${pis} = 1 ]] ; then 
    365                  echo "${cfg} OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" >> ${cfg_file} 
     366                 if [[ ${off} = 1 ]] ; then 
     367                    echo "${cfg} OPA_SRC OFF_SRC TOP_SRC" >> ${cfg_file} 
     368                 else 
     369                    echo "${cfg} OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" >> ${cfg_file} 
     370                 fi 
    366371              else 
    367372                echo "${cfg} OPA_SRC LIM_SRC_3 NST_SRC" >> ${cfg_file} 
Note: See TracChangeset for help on using the changeset viewer.