Ignore:
Timestamp:
01/10/20 12:08:42 (4 years ago)
Author:
acosce
Message:

standardization of inca.driver, inca.def in all default configuration using inca

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/GENERAL/DRIVER/inca.driver

    r4625 r4884  
    5151    enable1=.FALSE. 
    5252    enable2=.FALSE. 
     53    enable3=.FALSE.  
    5354 
    5455    for frequency in ${config_CHM_WriteFrequency} ; do 
     
    5859        case ${frequency} in 
    5960            1M|1m) enable2=.TRUE. ;; 
     61        esac 
     62        case ${frequency} in  
     63            1H|1h) enable3=.TRUE. ;;  
    6064        esac 
    6165    done 
     
    167171 
    168172        NMHC_AER_S) 
     173            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml aero_chem1  enabled ${enable3} 
     174 
    169175            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml forcage1     enabled ${enable1} 
    170176            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml aero1        enabled ${enable1} 
     
    211217    fi 
    212218 
    213     if [  X${inca_UserChoices_10m_winds_method} = X ] ; then 
    214     IGCM_comp_modifyDefFile nonblocker inca.def  10m_winds_method  threshold 
    215     else 
    216     IGCM_comp_modifyDefFile nonblocker inca.def  10m_winds_method ${inca_UserChoices_10m_winds_method} 
    217     fi 
    218  
    219219 
    220220    if [ ! X${inca_UserChoices_wind_parameter} = X ] ; then  
    221         if [  X${inca_UserChoices_10m_winds_method} = Xthreshold ] ; then  
    222             IGCM_comp_modifyDefFile nonblocker inca.def  tref ${inca_UserChoices_wind_parameter} 
    223             IGCM_comp_modifyDefFile nonblocker inca.def  kref DEFAULT 
    224         else 
    225             IGCM_comp_modifyDefFile nonblocker inca.def  kref ${inca_UserChoices_wind_parameter} 
    226             IGCM_comp_modifyDefFile nonblocker inca.def  tref DEFAULT 
    227         fi 
    228     else 
    229             IGCM_comp_modifyDefFile nonblocker inca.def  kref DEFAULT 
    230             IGCM_comp_modifyDefFile nonblocker inca.def  tref DEFAULT 
     221        IGCM_comp_modifyDefFile nonblocker inca.def  tref ${inca_UserChoices_wind_parameter} 
     222    else 
     223        IGCM_comp_modifyDefFile nonblocker inca.def  tref DEFAULT 
    231224    fi 
    232225 
     
    288281    fi 
    289282 
    290     #inca.def : choose output library  
    291     if [  X${inca_UserChoices_XIOS} = Xy ] ; then 
    292         IGCM_comp_modifyDefFile nonblocker inca.def  XIOS_INCA_OK  y 
    293     else 
    294         IGCM_comp_modifyDefFile nonblocker inca.def  XIOS_INCA_OK n 
    295     fi 
    296  
    297     if [  X${inca_UserChoices_IOIPSL} = Xy ] ; then 
    298         IGCM_comp_modifyDefFile nonblocker inca.def  IOIPSL_INCA_OK  y 
    299     else 
    300         IGCM_comp_modifyDefFile nonblocker inca.def  IOIPSL_INCA_OK n 
    301     fi 
    302  
    303  
    304  
     283 
     284 
     285    #inca.def : choose which xml will be use (with group or no = cmip files)  
     286    if [ X${cmip_xml} = Xy ] ; then  
     287         
     288        IGCM_comp_modifyDefFile nonblocker inca.def  cmip_xml  y 
     289    else 
     290        IGCM_comp_modifyDefFile nonblocker inca.def  cmip_xml  n 
     291    fi 
     292         
    305293 
    306294 
     
    308296    # In iodef.xml add on next line after "COMPONENT CONTEXT" 
    309297    #  <context id="inca" src="./context_inca.xml"/> 
    310         echo '<context id="inca" src="./context_inca.xml"/>' > add.tmp 
    311         cp iodef.xml iodef.xml.tmp 
    312         sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
    313             iodef.xml.tmp > iodef.xml 
    314         rm iodef.xml.tmp add.tmp 
     298    echo '<context id="inca" src="./context_inca.xml"/>' > add.tmp 
     299    cp iodef.xml iodef.xml.tmp 
     300    sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
     301        iodef.xml.tmp > iodef.xml 
     302    rm iodef.xml.tmp add.tmp 
    315303 
    316304 
Note: See TracChangeset for help on using the changeset viewer.