Ignore:
Timestamp:
06/29/15 12:05:17 (6 years ago)
Author:
jgipsl
Message:

Adapted LMDZOR_v6 to be used with LMDZ5 testing 2314

lmdz.driver : Modification due to parameter calendar which changed behaviour in LMDZ since rev 2229 in trunk LMDZ. Removed obsolete parameters LMDZ_ecrit_ISCCP and periodav

Copied file_def_xxx_lmdz.xml files from testing 2314 LMDZ/DefListes into GENERAL/PARAM. These files are still modified with option IGCM_comp_modifyXmlFile force. To be modified in next commit.

File:
1 edited

Legend:

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

    r2582 r2598  
    1313    RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 
    1414    RESOL_ATM_XY="${RESOL_ATM_X}x${RESOL_ATM_Y}" 
    15  
    16     ##-- Calendar type for LMDZ and create_etat0_limit 
    17     case ${config_UserChoices_CalendarType} in 
    18         leap|gregorian) 
    19             CalendarTypeForLmdz=earth_366d 
    20             CalendarTypeForCreate=gregorian;; 
    21         noleap) 
    22             CalendarTypeForLmdz=earth_365d 
    23             CalendarTypeForCreate=${CalendarTypeForLmdz};; 
    24         360d) 
    25             CalendarTypeForLmdz=earth_360d 
    26             CalendarTypeForCreate=${CalendarTypeForLmdz};; 
    27         *) 
    28             CalendarTypeForLmdz=earth_360d 
    29             CalendarTypeForCreate=${CalendarTypeForLmdz} 
    30     esac 
    3115 
    3216    ##- LMDZ physics version 
     
    164148    IGCM_debug_PushStack "ATM_Update" 
    165149 
    166  
    167     case ${config_UserChoices_PeriodLength} in 
    168         *Y|*y)  
    169                LMDZ_ecrit_ISCCP=30. 
    170                LMDZ_periodav=30. 
    171                if [ "${config_UserChoices_CalendarType}" != "360d" ] ; then 
    172                   echo Do not consider following warning if your running create_etat0_limit : 
    173                   echo WARNING !!! For lmdz : calendartype in config.card. PeriodLength=1Y allowed only for CalendarType=360d  
    174                fi 
    175                ;; 
    176         *) 
    177                LMDZ_ecrit_ISCCP=${PeriodLengthInDays}. 
    178                LMDZ_periodav=${PeriodLengthInDays}. 
    179                ;; 
    180     esac 
    181    
    182     ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def 
    183     if [ ${CumulPeriod} -eq 1 ] ; then 
    184         RAZ_DATE=1 
    185     else 
    186         RAZ_DATE=0 
    187     fi 
    188150 
    189151    ## Algorithme for special treatment for Bands_xxx file 
     
    469431 
    470432    ## run.def parameters 
     433 
     434 
     435    ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def 
     436    if [ ${CumulPeriod} -eq 1 ] ; then 
     437        IGCM_comp_modifyDefFile blocker run.def raz_date  1 
     438    else 
     439        IGCM_comp_modifyDefFile blocker run.def raz_date  0 
     440    fi 
     441 
     442    ##-- Calendar type for LMDZ and create_etat0_limit 
     443    case ${config_UserChoices_CalendarType} in 
     444        leap|gregorian) 
     445            IGCM_comp_modifyDefFile blocker run.def calend  gregorian ;; 
     446        noleap) 
     447            IGCM_comp_modifyDefFile blocker run.def calend  earth_365d ;; 
     448        360d) 
     449            IGCM_comp_modifyDefFile blocker run.def calend  earth_360d ;; 
     450        *) 
     451            IGCM_comp_modifyDefFile blocker run.def calend  earth_360d ;; 
     452    esac 
     453 
    471454    IGCM_comp_modifyDefFile blocker run.def dayref    ${InitDay} 
    472455    IGCM_comp_modifyDefFile blocker run.def nday      ${PeriodLengthInDays} 
    473     IGCM_comp_modifyDefFile blocker run.def raz_date  ${RAZ_DATE} 
    474     IGCM_comp_modifyDefFile blocker run.def periodav  ${LMDZ_periodav} 
    475456    IGCM_comp_modifyDefFile nonblocker run.def adjust ${LMDZ_adjust} 
    476457 
    477458    # Set anneeref different for gcm and ce0l 
    478     # Variable calend is different for a run with create_etat0_limit and the gcm 
    479459    # Test if executable create_etat0_limit is present and lmdz.x is not present 
    480460    if [ -f create_etat0_limit* ] || [ -f ce0l* ] && [ ! -f lmdz.x ] ; then 
    481461        # for case ce0l : always take current year 
    482462        IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 
    483         IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForCreate} 
    484463 
    485464        # Temporary, set use_filtre_fft=n because we now use dyn3d for ce0l version where fft is not implemented.  
     
    489468        # for case gcm : take first year of simulation 
    490469        IGCM_comp_modifyDefFile blocker run.def anneeref ${InitYear} 
    491         IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForLmdz} 
    492470    fi 
    493471 
Note: See TracChangeset for help on using the changeset viewer.