Ignore:
Timestamp:
03/23/18 15:31:39 (4 years ago)
Author:
acosce
Message:

Update IPSLESM to comply with v6 standard and add the AER experiment for the coupled model

Location:
CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/lim2.driver

    r3434 r3687  
    3939    IGCM_debug_Print 1 ${VI1D_ENABLE}  ${VI5D_ENABLE} ${VI1M_ENABLE} ${VI1Y_ENABLE} 
    4040 
    41     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d enabled ${VI1D_ENABLE} 
    42     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d enabled ${VI5D_ENABLE} 
    43     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m enabled ${VI1M_ENABLE} 
    44     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y enabled ${VI1Y_ENABLE} 
     41    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim enabled ${VI1D_ENABLE} 
     42    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim enabled ${VI5D_ENABLE} 
     43    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim enabled ${VI1M_ENABLE} 
     44    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE} 
    4545 
    4646    echo UPDATE ICE !!! 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/lim3.driver

    r3434 r3687  
    3636  # Update iodef.xml 
    3737 
     38    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
     39        VI1D_ENABLE=".FALSE." 
     40        VI5D_ENABLE=".FALSE." 
     41        VI1M_ENABLE=".FALSE." 
     42        VI1Y_ENABLE=".FALSE." 
     43    fi 
     44 
    3845    IGCM_debug_Print 1 'Informations into iodef.xml : VI1D_ENABLE VI5D_ENABLE VI1M_ENABLE VI1Y_ENABLE ' 
    3946    IGCM_debug_Print 1 ${VI1D_ENABLE}  ${VI5D_ENABLE} ${VI1M_ENABLE} ${VI1Y_ENABLE} 
    4047 
    41     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d enabled ${VI1D_ENABLE} 
    42     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d enabled ${VI5D_ENABLE} 
    43     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m enabled ${VI1M_ENABLE} 
    44     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y enabled ${VI1Y_ENABLE} 
     48    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim enabled ${VI1D_ENABLE} 
     49    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim enabled ${VI5D_ENABLE} 
     50    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim enabled ${VI1M_ENABLE} 
     51    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE} 
    4552 
    4653    echo UPDATE ICE !!! 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/lmdz.driver

    r3127 r3687  
    5353    ok_hf3hm=.FALSE. 
    5454    ok_stn=.FALSE. 
     55 
    5556 
    5657    case ${config_UserChoices_PeriodLength} in 
     
    8081    done 
    8182 
    82     ##  Read LMDZ_COSP_OK in lmdz.card 
     83    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     84        ok_mensuel=.FALSE. 
     85        ok_journe=.FALSE. 
     86        ok_hf=.FALSE. 
     87        ok_hf3h=.FALSE. 
     88        ok_hf3hm=.FALSE. 
     89        ok_stn=.FALSE. 
     90    fi 
     91 
     92##  Read LMDZ_COSP_OK in lmdz.card 
    8393    if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then 
    8494        ##  LMDZ_COSP_OK=y, now read all other COSP variables 
     
    159169 
    160170    # Read value for co2_ppm from file CO2.txt. If file not existing, take DEFAULT value from file.  
     171    # Calculate co2_ppm_per as co2_ppm*4. 
    161172    if [ -f CO2.txt ] ; then 
    162173        value=`grep Annee_${year} CO2.txt | awk -F= '{print $2}'` 
     
    166177            IGCM_debug_Verif_Exit 
    167178        fi 
     179        value4=`grep Annee_${year} CO2.txt | awk -F= '{print $2 * 4}'` 
    168180    else 
    169181        value=DEFAULT 
     182        value4=DEFAULT 
    170183    fi 
    171184    IGCM_comp_modifyDefFile nonblocker config.def co2_ppm $value 
     185    IGCM_comp_modifyDefFile nonblocker config.def co2_ppm_per $value4 
    172186 
    173187 
     
    456470    #  <context id="LMDZ" src="./context_lmdz.xml"/> 
    457471    echo '<context id="LMDZ" src="./context_lmdz.xml"/>' > add.tmp 
     472    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     473        echo '<context id="LMDZ" src="./ping_lmdz.xml"/>' >> add.tmp 
     474        echo '<context id="LMDZ" src="./dr2xml_lmdz.xml"/>' >> add.tmp 
     475    fi 
    458476    cp iodef.xml iodef.xml.tmp 
    459477    sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/opa9.driver

    r3434 r3687  
    134134    fi 
    135135 
     136    if ( [ "${CumulPeriod}" -eq 1 ] && [ "${opa9_UserChoices_Restart_TS_only}" = "y" ] ) ; then 
     137      OPA_LRSTAR_TS=.TRUE. 
     138    else 
     139      OPA_LRSTAR_TS=.FALSE. 
     140    fi 
    136141 
    137142    ##-- Meshmask option. Forced only once. 
     
    167172    NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${OPA_NITEND} }" ) )  
    168173 
    169     IGCM_comp_modifyNamelist blocker    namelist_cfg cn_exp    ${config_UserChoices_JobName} 
    170     IGCM_comp_modifyNamelist blocker    namelist_cfg nn_it000  ${OPA_NIT000} 
    171     IGCM_comp_modifyNamelist blocker    namelist_cfg nn_itend  ${OPA_NITEND} 
    172     IGCM_comp_modifyNamelist blocker    namelist_cfg ln_rstart ${OPA_LRSTAR} 
    173     IGCM_comp_modifyNamelist blocker    namelist_cfg nn_stock  ${OPA_NSTOCK} 
    174     IGCM_comp_modifyNamelist blocker    namelist_cfg nn_rstctl ${OPA_NRSTDT} 
    175     IGCM_comp_modifyNamelist blocker    namelist_cfg nn_date0  ${PeriodDateBegin} 
    176     IGCM_comp_modifyNamelist nonblocker namelist_cfg nn_msh    ${OPA_NMSH} 
     174    IGCM_comp_modifyNamelist blocker    namelist_cfg cn_exp       ${config_UserChoices_JobName} 
     175    IGCM_comp_modifyNamelist blocker    namelist_cfg nn_it000     ${OPA_NIT000} 
     176    IGCM_comp_modifyNamelist blocker    namelist_cfg nn_itend     ${OPA_NITEND} 
     177    IGCM_comp_modifyNamelist blocker    namelist_cfg ln_rstart    ${OPA_LRSTAR} 
     178    IGCM_comp_modifyNamelist blocker    namelist_cfg ln_rstart_ts ${OPA_LRSTAR_TS} 
     179    IGCM_comp_modifyNamelist blocker    namelist_cfg nn_stock     ${OPA_NSTOCK} 
     180    IGCM_comp_modifyNamelist blocker    namelist_cfg nn_rstctl    ${OPA_NRSTDT} 
     181    IGCM_comp_modifyNamelist blocker    namelist_cfg nn_date0     ${PeriodDateBegin} 
     182    IGCM_comp_modifyNamelist nonblocker namelist_cfg nn_msh       ${OPA_NMSH} 
    177183    IGCM_comp_modifyNamelist nonblocker namelist_cfg nn_rnf_depth_file  ${OPA_NMSH} 
    178     IGCM_comp_modifyNamelist blocker    namelist_cfg nn_leapy  ${OPA_NLEAPY} 
     184    IGCM_comp_modifyNamelist blocker    namelist_cfg nn_leapy     ${OPA_NLEAPY} 
    179185     
    180186    # Update iodef.xml 
     187 
     188    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
     189        V1D_ENABLE=".FALSE." 
     190        V5D_ENABLE=".FALSE." 
     191        V1M_ENABLE=".FALSE." 
     192        V1Y_ENABLE=".FALSE." 
     193    fi 
    181194 
    182195    IGCM_debug_Print 1 'Informations into iodef.xml : V1D_ENABLE V5D_ENABLE V1M_ENABLE V1Y_ENABLE ' 
    183196    IGCM_debug_Print 1 ${V1D_ENABLE}  ${V5D_ENABLE} ${V1M_ENABLE} ${V1Y_ENABLE} 
    184197 
    185     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1d enabled ${V1D_ENABLE} 
    186     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 5d enabled ${V5D_ENABLE} 
    187     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m enabled ${V1M_ENABLE} 
    188     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y enabled ${V1Y_ENABLE} 
     198    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1d_opa enabled ${V1D_ENABLE} 
     199    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 5d_opa enabled ${V5D_ENABLE} 
     200    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1m_opa enabled ${V1M_ENABLE} 
     201    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-opa.xml 1y_opa enabled ${V1Y_ENABLE} 
     202 
     203    IGCM_comp_modifyXmlFile force context_nemo.xml ref_year NONE ${opa9_UserChoices_TimeOrigin} 
    189204         
    190205  
     
    200215    #  <context id="nemo" src="./context_nemo.xml"/> 
    201216    echo '<context id="nemo" src="./context_nemo.xml"/>' > add.tmp 
     217    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     218        echo '<context id="nemo" src="./ping_nemo.xml"/>' >> add.tmp 
     219        echo '<context id="nemo" src="./dr2xml_opa9.xml"/>' >> add.tmp 
     220    fi 
    202221    cp iodef.xml iodef.xml.tmp 
    203222    sed -e "/COMPONENT CONTEXT/r add.tmp" \ 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/orchidee.driver

    r3200 r3687  
    3434        # Deactivate output files for stomate 
    3535        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE. 
     36        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0 
    3637        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo 
    3738        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE. 
     39        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0 
    3840        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo 
    3941    fi 
     
    4648    fi 
    4749 
     50    # Set VEGET_UPDATE=1Y in orchidee.def if VEGET_UPDATE_at_start=y in orchidee.card and if it is the first cumul periond (start of new simulation) 
     51    if [ X${orchidee_UserChoices_VEGET_UPDATE_at_start} = Xy ] && [ ${CumulPeriod} -eq 1 ] ; then 
     52        IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE   1Y 
     53    fi 
     54 
    4855    # Modify in orchidee.def VEGET_UPDATE if it is set in orchidee.card section UserChoices 
     56    # Note: if the variable has been set by VEGET_UPDATE_at_start, this section will not overwrite it. 
    4957    if [ ! X${orchidee_UserChoices_VEGET_UPDATE} = X ] ; then 
    5058        IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE   ${orchidee_UserChoices_VEGET_UPDATE} 
     
    6270 
    6371    ## 2. Mangement of output and modifications of related xml files 
    64  
    65     # Set default values for sechiba1_enabled and sechiba1_freq. 
    66     # These variables are used only to modify file_def_orchidee.xml 
    67     sechiba1_enabled=.FALSE. 
    68     sechiba2_enabled=.FALSE. 
    69     sechiba1_freq=0s 
    70     sechiba2_freq=0s 
    71  
    72  
    73     # Get WriteFrenquecy for SRF (SECHIBA) from config.card 
    74     # 1 or 2 frequencies can be set in WriteFrenquecy for SRF 
    75     # The first frequency will always be used for the sechiba_history file and the  
    76     # second frequency will be used for the sechiba_out_2.nc file.  
    77     # The files are activated only if its corresponding frequency is set in WriteFrequency 
    78     ifreq=0 
    79     for frequency in ${config_SRF_WriteFrequency} ; do 
    80         case ${frequency} in 
    81             *Y|*y)  
    82                 NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' ) 
    83                 NbDaysYear=$( IGCM_date_DaysInYear ${year} ) 
    84                 file_enabled=.TRUE. 
    85                 file_freq=${NbYears}y ;; 
    86             *M|*m) 
    87                 NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' ) 
    88                 file_enabled=.TRUE. 
    89                 file_freq=${NbMonths}mo ;; 
    90             *D|*d) 
    91                 NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' ) 
    92                 file_enabled=.TRUE. 
    93                 file_freq=${NbDays}d ;; 
    94             *s) 
    95                 WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' ) 
    96                 file_enabled=.TRUE. 
    97                 file_freq=${WriteInSeconds}s ;; 
    98             HF|hf)  
    99                 file_enabled=.TRUE.  
    100                 file_freq=10800s ;; 
    101             *)  
    102                 IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF"  
    103                 IGCM_debug_Verif_Exit ;; 
    104         esac 
    105  
    106         (( ifreq = ifreq + 1 )) 
    107         case ${ifreq} in 
    108             1) 
    109                 sechiba1_enabled=${file_enabled} 
    110                 sechiba1_freq=${file_freq} ;; 
    111             2) 
    112                 sechiba2_enabled=${file_enabled} 
    113                 sechiba2_freq=${file_freq} ;; 
    114         *) 
    115                 IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card" 
    116                 IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card." 
    117                 IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files" 
    118                 IGCM_debug_Verif_Exit ;; 
    119         esac 
    120     done 
    121  
    122  
    123     # Modify file_def_orchidee.xml file 
    124     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled ${sechiba1_enabled} 
    125     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq ${sechiba1_freq} 
    126     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled ${sechiba2_enabled} 
    127     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq ${sechiba2_freq} 
    128     # Use same values for sechiba1 and for sechiba3 files 
    129     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled ${sechiba1_enabled} 
    130     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq ${sechiba1_freq} 
     72    # Modify file_def_orchidee.xml file using settings from orchidee.card 
     73    # We here suppose that for each file, in orchidee.card UserChoices section, if the parameter  
     74    # output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked.  
     75    # If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated. 
     76    # Settings in config.card WriteFrequency are not used any more. 
    13177     
     78    if [ X${orchidee_UserChoices_output_level_sechiba_history} = X ] || [ X${orchidee_UserChoices_output_level_sechiba_history} = XNONE ] ; then 
     79        # output_level_sechiba_history is not set in orchidee.card or it is set to NONE. 
     80        # Deactivate the file. 
     81        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled .FALSE. 
     82        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level 0 
     83        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq 1mo 
     84    else 
     85        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled      .TRUE. 
     86        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_level ${orchidee_UserChoices_output_level_sechiba_history} 
     87        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${orchidee_UserChoices_output_freq_sechiba_history} 
     88    fi 
     89     
     90    if [ X${orchidee_UserChoices_output_level_sechiba_out_2} = X ] || [ X${orchidee_UserChoices_output_level_sechiba_out_2} = XNONE ] ; then 
     91        # output_level_sechiba_out_2 is not set in orchidee.card or it is set to NONE. 
     92        # Deactivate the file. 
     93        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled .FALSE. 
     94        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level 0 
     95        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq 1mo 
     96    else 
     97        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled      .TRUE. 
     98        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_level ${orchidee_UserChoices_output_level_sechiba_out_2} 
     99        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${orchidee_UserChoices_output_freq_sechiba_out_2} 
     100    fi 
     101     
     102    if [ X${orchidee_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${orchidee_UserChoices_output_level_sechiba_history_4dim} = XNONE ] ; then 
     103        # output_level_sechiba_history_4dim is not set in orchidee.card or it is set to NONE. 
     104        # Deactivate the file. 
     105        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled .FALSE. 
     106        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level 0 
     107        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq 1mo 
     108    else 
     109        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled      .TRUE. 
     110        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_level ${orchidee_UserChoices_output_level_sechiba_history_4dim} 
     111        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${orchidee_UserChoices_output_freq_sechiba_history_4dim} 
     112    fi 
     113         
    132114 
    133115    # Add include of orchidee context in iodef.xml 
     
    135117    #  <context id="orchidee" src="./context_orchidee.xml"/> 
    136118    echo '<context id="orchidee" src="./context_orchidee.xml"/>' > add.tmp 
     119    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     120        echo '<context id="orchidee" src="./ping_orchidee.xml"/>' >> add.tmp 
     121        echo '<context id="orchidee" src="./dr2xml_orchidee.xml"/>' >> add.tmp 
     122    fi 
    137123    cp iodef.xml iodef.xml.tmp 
    138124    sed -e "/COMPONENT CONTEXT/r add.tmp" iodef.xml.tmp > iodef.xml 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/pisces.driver

    r3434 r3687  
    99 
    1010lmdzgrep2 () { 
    11      grep ${1} ${2} | grep -v "#"  | sed -e 's/=//g' -e 's/://g' -e 's/_AUTO_//' -e 's/DEFAULT//' | sed -e "s/${1}//"  
     11     grep -w ${1} ${2} | grep -v "#"  | sed -e 's/=//g' -e 's/://g' -e 's/_AUTO_//' -e 's/DEFAULT//' | sed -e "s/${1}//"  
    1212} 
    1313 
     
    110110    # Update iodef.xml 
    111111 
     112    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
     113        VT1D_ENABLE=".FALSE." 
     114        VT5D_ENABLE=".FALSE." 
     115        VT1M_ENABLE=".FALSE." 
     116        VT1Y_ENABLE=".FALSE." 
     117    fi 
     118 
    112119    IGCM_debug_Print 1 'Informations into iodef.xml : VT1D_ENABLE VT5D_ENABLE VT1M_ENABLE VT1Y_ENABLE ' 
    113120    IGCM_debug_Print 1 ${VT1D_ENABLE}  ${VT5D_ENABLE} ${VT1M_ENABLE} ${VT1Y_ENABLE} 
    114121 
    115     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1d enabled ${VT1D_ENABLE} 
    116     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 5d enabled ${VT5D_ENABLE} 
    117     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m enabled ${VT1M_ENABLE} 
    118     IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y enabled ${VT1Y_ENABLE} 
     122    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1d_pis enabled ${VT1D_ENABLE} 
     123    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 5d_pis enabled ${VT5D_ENABLE} 
     124    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m_pis enabled ${VT1M_ENABLE} 
     125    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y_pis enabled ${VT1Y_ENABLE} 
    119126    
    120127    IGCM_debug_PopStack "MBG_Update" 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/stomate.driver

    r2758 r3687  
    11#!/bin/ksh 
    22 
    3 #D- Driver pour ORCHIDEE stomate component 
     3#D- Driver for ORCHIDEE stomate component (SBG) 
    44 
    55#----------------------------------------------------------------- 
     
    1717     
    1818    # Output management 
     19    # Modify file_def_orchidee.xml file using settings from stomate.card 
     20    # We here suppose that for each file, in stomate.card UserChoices section, if the parameter  
     21    # output_level_filename is set, then also output_freq_filename must be set. The existance of output_freq_filename will not be checked.  
     22    # If output_level_filename=NONE or if it is not set, the corresponding file will be deactivated. 
     23     
     24    if [ X${stomate_UserChoices_output_level_stomate_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_history} = XNONE ] ; then 
     25        # output_level_stomate_history is not set in stomate.card or it is set to NONE. 
     26        # Deactivate the file. 
     27        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled .FALSE. 
     28        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level 0 
     29        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq 1mo 
     30    else 
     31        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled      .TRUE. 
     32        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_level ${stomate_UserChoices_output_level_stomate_history} 
     33        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq  ${stomate_UserChoices_output_freq_stomate_history} 
     34    fi 
     35     
     36    if [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = X ] || [ X${stomate_UserChoices_output_level_stomate_ipcc_history} = XNONE ] ; then 
     37        # output_level_stomate_ipcc_history is not set in stomate.card or it is set to NONE. 
     38        # Deactivate the file. 
     39        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled .FALSE. 
     40        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level 0 
     41        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq 1mo 
     42    else 
     43        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled      .TRUE. 
     44        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_level ${stomate_UserChoices_output_level_stomate_ipcc_history} 
     45        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq  ${stomate_UserChoices_output_freq_stomate_ipcc_history} 
     46    fi 
    1947 
    20     # Set default values for stomate output files. 
    21     stomate_enabled=.FALSE. 
    22     stomate_freq=0s 
    23  
    24     # Read WriteFrequency set in config.card section SBG.  
    25     # Only one choice can be set as WriteFrequency. The same choice will be used for  
    26     # both stomate_history and stomate_ipcc_history files.  
    27     for frequency in ${config_SBG_WriteFrequency} ; do 
    28         case ${frequency} in 
    29             *Y|*y)  
    30                 NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' ) 
    31                 NbDaysYear=$( IGCM_date_DaysInYear ${year} ) 
    32                 stomate_enabled=.TRUE. 
    33                 stomate_freq=${NbYears}y ;; 
    34             *M|*m)  
    35                 NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' ) 
    36                 stomate_enabled=.TRUE. 
    37                 stomate_freq=${NbMonths}mo ;; 
    38             *D|*d) 
    39                 NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' ) 
    40                 stomate_enabled=.TRUE. 
    41                 stomate_freq=${NbDays}d ;; 
    42             *)  
    43                 IGCM_debug_Exit "SBG WriteFrequency=${frequency} is invalid. Choose between xY, xM and xD for Stomate." ;; 
    44         esac 
    45     done 
    46  
    47     # Modify file_def_orchidee.xml 
    48     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled ${stomate_enabled} 
    49     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq ${stomate_freq} 
    50     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled ${stomate_enabled} 
    51     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq ${stomate_freq} 
    52      
     48         
    5349 
    5450    # Define in orchidee.def if restart file should be used 
Note: See TracChangeset for help on using the changeset viewer.