Ignore:
Timestamp:
12/15/16 10:58:34 (8 years ago)
Author:
acosce
Message:

update LMDZORINCA_v6 configuration
1- now LMDZOR experiments are in New Physics
2- add clim_* LMDZOR experiments
3- now timestep is manage in gcm.def in relation with the atm physics choose
4- update value for GHG in config.def files
5- remove files not use anymore (PARAM/file_lmdz.xml PARAM/output.def)
6- add calcul_flux in inca.card / inca.def / inca.driver

Location:
CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER
Files:
3 edited

Legend:

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

    r2833 r3061  
    111111    fi 
    112112 
     113    #inca.def : choose calcul interactif des diagnostiques flux chimique ou non   
     114    if [ ! X${inca_UserChoices_calcul_flux} = X ]; then  
     115        IGCM_comp_modifyDefFile nonblocker inca.def calcul_flux ${inca_UserChoices_calcul_flux} 
     116    else 
     117        IGCM_comp_modifyDefFile nonblocker inca.def calcul_flux n 
     118    fi 
     119 
    113120    #inca.def : choose output library  
    114121    if [  X${inca_UserChoices_XIOS} = Xy ] ; then 
     
    144151    fi 
    145152 
    146     #Long Name as global attribute (if LongName is not empty) 
     153    # Add LongName as global attribute in XIOS output files (if LongName is not empty) 
    147154    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
    148155        listfile=$(ls file_def*inca.xml) 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/lmdz.driver

    r2954 r3061  
    277277         
    278278 
    279     ## gcm.def parameters :  
    280     # Modification of variable iphysiq depending on the physics 
    281     if [ X${LMDZ_Physics} = X"AP" ] ; then 
    282         if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
    283             value=10 
    284         elif [ ${RESOL_ATM_3D} = 144x142x39 ]; then 
    285             value=15 
    286         else 
    287             IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
    288             IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
    289             IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
    290         fi 
    291     elif [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
    292         if  [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
    293             value=5 
    294         elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
    295             value=5 
    296         else 
    297             IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
    298             IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
    299             IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
    300         fi 
    301     elif [ X${LMDZ_Physics} = X"NPv3.2" ] ; then 
    302         if [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
    303             value=5 
    304         elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
    305             value=5 
    306         elif [ ${RESOL_ATM_3D} = 128x118x39 ] ; then 
    307             value=15 
    308         else 
    309             IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
    310             IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
    311             IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
    312         fi 
    313     else 
    314         # Take default value set in gcm.def 
    315         value=DEFAULT 
    316     fi 
    317     IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    318      
    319279 
    320280    ## run.def parameters 
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6/GENERAL/DRIVER/orchidee.driver

    r2907 r3061  
    11#!/bin/ksh 
    2 #D- Driver du script pour ORCHIDEE 
     2## Driver for the component SRF corresponding to the sechiba part of ORCHIDEE 
    33#----------------------------------------------------------------- 
    44function SRF_Initialize 
     
    6363    ## 2. Mangement of output and modifications of related xml files 
    6464 
    65     # Set default values for sechiba1_enabled, sechiba1_freq and sechiba2_enabled. 
     65    # Set default values for sechiba1_enabled and sechiba1_freq. 
     66    # These variables are used only to modify file_def_orchidee.xml 
    6667    sechiba1_enabled=.FALSE. 
    6768    sechiba2_enabled=.FALSE. 
    6869    sechiba1_freq=0s 
     70    sechiba2_freq=0s 
    6971 
    70     # Get WriteFrenquecies from config.card for SECHIBA 
    71     # Note that it is only possible to have one HF and one other option.  
    72     # If more options are set in config.card only the latest will be used. 
     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 
    7379    for frequency in ${config_SRF_WriteFrequency} ; do 
    7480        case ${frequency} in 
     
    7682                NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' ) 
    7783                NbDaysYear=$( IGCM_date_DaysInYear ${year} ) 
    78                 sechiba1_enabled=.TRUE. 
    79                 sechiba1_freq=${NbYears}y ;; 
     84                file_enabled=.TRUE. 
     85                file_freq=${NbYears}y ;; 
    8086            *M|*m) 
    8187                NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' ) 
    82                 sechiba1_enabled=.TRUE. 
    83                 sechiba1_freq=${NbMonths}mo ;; 
     88                file_enabled=.TRUE. 
     89                file_freq=${NbMonths}mo ;; 
    8490            *D|*d) 
    8591                NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' ) 
    86                 sechiba1_enabled=.TRUE. 
    87                 sechiba1_freq=${NbDays}d ;; 
     92                file_enabled=.TRUE. 
     93                file_freq=${NbDays}d ;; 
    8894            *s) 
    8995                WriteInSeconds=$( echo ${frequency} | awk -F '[s]' '{print $1}' ) 
    90                 sechiba1_enabled=.TRUE. 
    91                 sechiba1_freq=${WriteInSeconds}s ;; 
     96                file_enabled=.TRUE. 
     97                file_freq=${WriteInSeconds}s ;; 
    9298            HF|hf)  
    93                 sechiba2_enabled=.TRUE. ;; 
     99                file_enabled=.TRUE.  
     100                file_freq=10800s ;; 
    94101            *)  
    95                 IGCM_debug_Exit "SRF WriteFrequency=${frequency} is invalid. Choose between xY, xM, xD, xs and HF for Sechiba." ;; 
     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 ;; 
    96119        esac 
    97120    done 
    98121 
    99     # Do the modifications in file_def_orchidee.xml 
     122 
     123    # Modify file_def_orchidee.xml file 
    100124    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 enabled ${sechiba1_enabled} 
    101125    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml sechiba1 output_freq ${sechiba1_freq} 
    102126    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     
    103129 
    104130    # Add include of orchidee context in iodef.xml 
     
    110136    rm iodef.xml.tmp add.tmp 
    111137 
    112     #Long Name as global attribute (if LongName is not empty) 
    113         if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
    114             listfile=$(ls file_def*orchidee.xml) 
    115             echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
    116             for file in ${listfile} 
    117             do 
    118                 cp ${file} ${file}.tmp 
    119                 sed -e "/<file id/r add.tmp" \ 
    120                     ${file}.tmp > ${file} 
    121                 rm ${file}.tmp  
    122             done  
    123             rm add.tmp 
    124         fi 
     138    # Add LongName as global attribute in XIOS output files (if LongName is not empty) 
     139    if [ ! "X${config_UserChoices_LongName}" = "X" ] ; then 
     140        listfile=$(ls file_def*orchidee.xml) 
     141        echo "<variable id=\"LongName\" type=\"string\">${config_UserChoices_LongName}</variable>" > add.tmp 
     142        for file in ${listfile} 
     143        do 
     144            cp ${file} ${file}.tmp 
     145            sed -e "/<file id/r add.tmp" \ 
     146                ${file}.tmp > ${file} 
     147            rm ${file}.tmp  
     148        done  
     149        rm add.tmp 
     150    fi 
     151 
    125152 
    126153    IGCM_debug_PopStack "SRF_Update" 
Note: See TracChangeset for help on using the changeset viewer.