Changeset 3563 for CONFIG/UNIFORM


Ignore:
Timestamp:
02/05/18 10:30:20 (4 years ago)
Author:
jgipsl
Message:

Changed strategy for settings for output files for ORCHIDEE. Activate files, output level and output frequency are now set from orchidee.card and stomate.card. WriteFrequancy in config.card is not used any more for ORCHIDEE (SRF and SBG).

Location:
CONFIG/UNIFORM/v6/LMDZOR_v6
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/amip/COMP/orchidee.card

    r3517 r3563  
    1010 
    1111VEGET_UPDATE=1Y 
     12 
     13 
     14# Specify output level for output files 
     15# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here. 
     16# output_level_filename=0     : lowest level writing only variables needed for the monitoring 
     17# output_level_filename=12    : highest level which will output all variables 
     18# output_level_filename=NONE  : deactivate the file 
     19output_level_sechiba_history = 11 
     20output_level_sechiba_out_2 = NONE 
     21output_level_sechiba_history_4dim = 11 
     22 
     23# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts] 
     24# Settings using WriteFrequency in config.card is not longer used 
     25output_freq_sechiba_history = 1mo 
     26output_freq_sechiba_out_2 = 10800s 
     27output_freq_sechiba_history_4dim = 1mo 
     28 
    1229 
    1330[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/amip/COMP/stomate.card

    r3540 r3563  
    33 
    44[UserChoices] 
     5 
     6# Specify output level for output files 
     7# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here. 
     8# output_level_filname=0     : lowest level writing only variables needed for the monitoring 
     9# output_level_filname=1     : highest level which will output all variables 
     10# output_level_filname=NONE  : deactivate the file 
     11output_level_stomate_history = 1 
     12output_level_stomate_ipcc_history = 1 
     13 
     14# Specify output frequency for each file [1y, 1mo, 1d] 
     15# Settings using WriteFrequency in config.card are not longer used 
     16output_freq_stomate_history = 1mo 
     17output_freq_stomate_ipcc_history = 1mo 
     18 
    519 
    620[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/amip/config.card

    r3458 r3563  
    7878#D-- SRF - 
    7979[SRF] 
    80 WriteFrequency="1M" 
     80# WriteFrequency is not used any more for ORCHIDEE  
     81# Output files are now managed in orchidee.card  
     82WriteFrequency="" 
    8183# If config_Restarts_OverRule == 'n' next 4 params are read 
    8284Restart= n 
     
    9193#D-- SBG - STOMATE 
    9294[SBG] 
    93 WriteFrequency="1M" 
     95# WriteFrequency is not used any more for ORCHIDEE  
     96# Output files are now managed in stomate.card  
     97WriteFrequency="" 
    9498# If config_Restarts_OverRule == 'n' next 4 params are read 
    9599Restart= n 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/clim_360d/COMP/orchidee.card

    r3537 r3563  
    1616# VEGET_UPDATE=1Y : update the vegetation and woodharvest file 1st of January each year 
    1717VEGET_UPDATE=0Y 
     18 
     19# Specify output level for output files 
     20# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here. 
     21# output_level_filename=0     : lowest level writing only variables needed for the monitoring 
     22# output_level_filename=12    : highest level which will output all variables 
     23# output_level_filename=NONE  : deactivate the file 
     24output_level_sechiba_history = 11 
     25output_level_sechiba_out_2 = NONE 
     26output_level_sechiba_history_4dim = 11 
     27 
     28# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts] 
     29# Settings using WriteFrequency in config.card is not longer used 
     30output_freq_sechiba_history = 1mo 
     31output_freq_sechiba_out_2 = 10800s 
     32output_freq_sechiba_history_4dim = 1mo 
    1833 
    1934 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/clim_360d/COMP/stomate.card

    r3540 r3563  
    33 
    44[UserChoices] 
     5 
     6# Specify output level for output files 
     7# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here. 
     8# output_level_filname=0     : lowest level writing only variables needed for the monitoring 
     9# output_level_filname=1     : highest level which will output all variables 
     10# output_level_filname=NONE  : deactivate the file 
     11output_level_stomate_history = 1 
     12output_level_stomate_ipcc_history = 1 
     13 
     14# Specify output frequency for each file [1y, 1mo, 1d] 
     15# Settings using WriteFrequency in config.card are not longer used 
     16output_freq_stomate_history = 1mo 
     17output_freq_stomate_ipcc_history = 1mo 
     18 
    519 
    620[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/clim_360d/config.card

    r3222 r3563  
    7878#D-- SRF - 
    7979[SRF] 
    80 WriteFrequency="1M" 
     80# WriteFrequency is not used any more for ORCHIDEE  
     81# Output files are now managed in orchidee.card  
     82WriteFrequency="" 
    8183# If config_Restarts_OverRule == 'n' next 4 params are read 
    8284Restart= n 
     
    9193#D-- SBG - STOMATE 
    9294[SBG] 
    93 WriteFrequency="1M" 
     95# WriteFrequency is not used any more for ORCHIDEE  
     96# Output files are now managed in stomate.card  
     97WriteFrequency="" 
    9498# If config_Restarts_OverRule == 'n' next 4 params are read 
    9599Restart= n 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/clim_pdControl/COMP/orchidee.card

    r3537 r3563  
    1616# VEGET_UPDATE=1Y : update the vegetation and woodharvest file 1st of January each year 
    1717VEGET_UPDATE=0Y 
     18 
     19# Specify output level for output files 
     20# Only the files sechiba_history.nc, sechiba_out_2.nc and sechiba_history_4dim.nc can be set here. 
     21# output_level_filename=0     : lowest level writing only variables needed for the monitoring 
     22# output_level_filename=12    : highest level which will output all variables 
     23# output_level_filename=NONE  : deactivate the file 
     24output_level_sechiba_history = 11 
     25output_level_sechiba_out_2 = NONE 
     26output_level_sechiba_history_4dim = 11 
     27 
     28# Specify output frequency for each file [1y, 1mo, 1d, 10800s, 1ts] 
     29# Settings using WriteFrequency in config.card is not longer used 
     30output_freq_sechiba_history = 1mo 
     31output_freq_sechiba_out_2 = 10800s 
     32output_freq_sechiba_history_4dim = 1mo 
    1833 
    1934 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/clim_pdControl/COMP/stomate.card

    r3540 r3563  
    33 
    44[UserChoices] 
     5 
     6# Specify output level for output files 
     7# Only the files stomate_history.nc and stomate_ipcc_history.nc can be set here. 
     8# output_level_filname=0     : lowest level writing only variables needed for the monitoring 
     9# output_level_filname=1     : highest level which will output all variables 
     10# output_level_filname=NONE  : deactivate the file 
     11output_level_stomate_history = 1 
     12output_level_stomate_ipcc_history = 1 
     13 
     14# Specify output frequency for each file [1y, 1mo, 1d] 
     15# Settings using WriteFrequency in config.card are not longer used 
     16output_freq_stomate_history = 1mo 
     17output_freq_stomate_ipcc_history = 1mo 
     18 
    519 
    620[InitialStateFiles] 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/EXPERIMENTS/LMDZOR/clim_pdControl/config.card

    r3460 r3563  
    7878#D-- SRF - 
    7979[SRF] 
    80 WriteFrequency="1M" 
     80# WriteFrequency is not used any more for ORCHIDEE  
     81# Output files are now managed in orchidee.card  
     82WriteFrequency="" 
    8183# If config_Restarts_OverRule == 'n' next 4 params are read 
    8284Restart= n 
     
    9193#D-- SBG - STOMATE 
    9294[SBG] 
    93 WriteFrequency="1M" 
     95# WriteFrequency is not used any more for ORCHIDEE  
     96# Output files are now managed in stomate.card  
     97WriteFrequency="" 
    9498# If config_Restarts_OverRule == 'n' next 4 params are read 
    9599Restart= n 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/orchidee.driver

    r3537 r3563  
    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 
     
    6870 
    6971    ## 2. Mangement of output and modifications of related xml files 
    70  
    71     # Set default values for sechiba1_enabled and sechiba1_freq. 
    72     # These variables are used only to modify file_def_orchidee.xml 
    73     sechiba1_enabled=.FALSE. 
    74     sechiba2_enabled=.FALSE. 
    75     sechiba1_freq=0s 
    76     sechiba2_freq=0s 
    77  
    78  
    79     # Get WriteFrenquecy for SRF (SECHIBA) from config.card 
    80     # 1 or 2 frequencies can be set in WriteFrenquecy for SRF 
    81     # The first frequency will always be used for the sechiba_history file and the  
    82     # second frequency will be used for the sechiba_out_2.nc file.  
    83     # The files are activated only if its corresponding frequency is set in WriteFrequency 
    84     ifreq=0 
    85     for frequency in ${config_SRF_WriteFrequency} ; do 
    86         case ${frequency} in 
    87             *Y|*y)  
    88                 NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' ) 
    89                 NbDaysYear=$( IGCM_date_DaysInYear ${year} ) 
    90                 file_enabled=.TRUE. 
    91                 file_freq=${NbYears}y ;; 
    92             *M|*m) 
    93                 NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' ) 
    94                 file_enabled=.TRUE. 
    95                 file_freq=${NbMonths}mo ;; 
    96             *D|*d) 
    97                 NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' ) 
    98                 file_enabled=.TRUE. 
    99                 file_freq=${NbDays}d ;; 
    100             *s) 
    101                 WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' ) 
    102                 file_enabled=.TRUE. 
    103                 file_freq=${WriteInSeconds}s ;; 
    104             HF|hf)  
    105                 file_enabled=.TRUE.  
    106                 file_freq=10800s ;; 
    107             *)  
    108                 IGCM_debug_Exit "SRF_Update " ${frequency} " invalid WriteFrequency : choose in xY, xM, xD, xs and HF"  
    109                 IGCM_debug_Verif_Exit ;; 
    110         esac 
    111  
    112         (( ifreq = ifreq + 1 )) 
    113         case ${ifreq} in 
    114             1) 
    115                 sechiba1_enabled=${file_enabled} 
    116                 sechiba1_freq=${file_freq} ;; 
    117             2) 
    118                 sechiba2_enabled=${file_enabled} 
    119                 sechiba2_freq=${file_freq} ;; 
    120         *) 
    121                 IGCM_debug_Exit "SRF_Update: It is not possible to set more than 2 output files for sechiba from config.card" 
    122                 IGCM_debug_Exit "You must correct WriteFrequancy in SRF secion in config.card." 
    123                 IGCM_debug_Exit "Adapt file_def_orchidee.xml directly if you want more output files" 
    124                 IGCM_debug_Verif_Exit ;; 
    125         esac 
    126     done 
    127  
    128  
    129     # Modify file_def_orchidee.xml file 
    130     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled ${sechiba1_enabled} 
    131     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq ${sechiba1_freq} 
    132     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 enabled ${sechiba2_enabled} 
    133     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq ${sechiba2_freq} 
    134     # Use same values for sechiba1 and for sechiba3 files 
    135     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 enabled ${sechiba1_enabled} 
    136     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq ${sechiba1_freq} 
     72    # Modify file_def_orchidee.xml file using settings from sechiba.card/orchidee.card 
     73    # We here suppose that for each file, in sechiba.card/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. 
    13777     
     78    if [ X${sechiba_UserChoices_output_level_sechiba_history} = X ] || [ X${sechiba_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 ${sechiba_UserChoices_output_level_sechiba_history} 
     87        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history} 
     88    fi 
     89     
     90    if [ X${sechiba_UserChoices_output_level_sechiba_out_2} = X ] || [ X${sechiba_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 ${sechiba_UserChoices_output_level_sechiba_out_2} 
     99        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba2 output_freq  ${sechiba_UserChoices_output_freq_sechiba_out_2} 
     100    fi 
     101     
     102    if [ X${sechiba_UserChoices_output_level_sechiba_history_4dim} = X ] || [ X${sechiba_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 ${sechiba_UserChoices_output_level_sechiba_history_4dim} 
     111        IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba3 output_freq  ${sechiba_UserChoices_output_freq_sechiba_history_4dim} 
     112    fi 
     113         
    138114 
    139115    # Add include of orchidee context in iodef.xml 
  • CONFIG/UNIFORM/v6/LMDZOR_v6/GENERAL/DRIVER/stomate.driver

    r3505 r3563  
    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  
    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     if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then        
    48         stomate_enabled=.FALSE. 
     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} 
    4946    fi 
    5047 
    51     # Modify file_def_orchidee.xml 
    52     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled ${stomate_enabled} 
    53     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq ${stomate_freq} 
    54     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled ${stomate_enabled} 
    55     IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq ${stomate_freq} 
    56      
     48         
    5749 
    5850    # Define in orchidee.def if restart file should be used 
Note: See TracChangeset for help on using the changeset viewer.