Ignore:
Timestamp:
04/20/22 16:07:08 (2 years ago)
Author:
jgipsl
Message:
  • Update orchidee.driver as done in LMDZOR_v6.2 to be easier to use with routing scheme simple. This is done in all configurations using ORCHIDEE_2_x, ORCHIDEE_3 and ORCHIDEE trunk.
  • Update orchidee.def in configurations using ORCHIDEE_2_2 only. Only these configurations can activate routing simple currently. Now to activate routing simple, only modifications in orchidee.card is needed.

See also ticket https://forge.ipsl.jussieu.fr/orchidee/ticket/581

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6.4/GENERAL/DRIVER/orchidee.driver

    r6076 r6117  
    6262    else 
    6363        IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE 0Y 
     64    fi 
     65 
     66    # Set parameters related to ROUTING in orchidee.def 
     67    if [ X${orchidee_UserChoices_ROUTING} = X ] || [ X${orchidee_UserChoices_ROUTING} = Xstandard ]; then 
     68        # Nothing is set or ROUTING=standard in orchidee.def, default option 
     69        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING y 
     70        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  standard 
     71    elif [ X${orchidee_UserChoices_ROUTING} = Xsimple ]; then 
     72        # ROUTING=simple is set in orchidee.card 
     73        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING y 
     74        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  simple 
     75    elif [ X${orchidee_UserChoices_ROUTING} = Xhighres ]; then 
     76        # ROUTING=highres is set in orchidee.card 
     77        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING y 
     78        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  highres 
     79    else 
     80        # ROUTING=off, routing will be deactivated 
     81        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_ROUTING n 
     82        IGCM_comp_modifyDefFile nonblocker orchidee.def ROUTING_METHOD  standard 
    6483    fi 
    6584 
     
    142161    # In iodef.xml add on the next line after "COMPONENT CONTEXT" 
    143162    echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp 
     163 
    144164    # Add inclusion of file context_input_orchidee.xml if this file exists 
    145165    if [ -f context_input_orchidee.xml ] ; then 
    146166        echo '<context id="orchidee" src="./context_input_orchidee.xml"/>' >> add.tmp 
    147167    fi 
     168 
     169    # Add inclusion of file context_routing_orchidee.xml if this file exists 
     170    if [ -f context_routing_orchidee.xml ] ; then 
     171        echo '<context id="orchidee" src="./context_routing_orchidee.xml"/>' >> add.tmp 
     172    fi 
     173 
    148174    # Include xml files for output configuration if running with workflow CMIP6 
    149175    if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then 
Note: See TracChangeset for help on using the changeset viewer.