Ignore:
Timestamp:
02/12/10 15:25:51 (14 years ago)
Author:
acosce
Message:

ACo : update LMDZINCA_v3 config

1- add TS in inca.card
2- add repertory POST
3- change calendar by default (leap)


File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/CREATE/COMP/lmdz.driver

    r267 r889  
     1#- $Id: lmdz.driver 868 2010-01-08 13:20:18Z acosce $ 
    12#!/bin/ksh 
    23 
     
    67    IGCM_debug_PushStack "ATM_Initialize" 
    78 
    8     RESOL_ATM=${RESOL} 
     9    RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' ) 
     10    case ${RESOL_ATM} in 
     11        LMD7245)   BandsResol=72x45x19   ;; 
     12        LMD9671)   BandsResol=96x71x19   ;; 
     13        LMD9672)   BandsResol=96x72x19   ;; 
     14        LMD9695)   BandsResol=96x95x19   ;; 
     15        LMD14496)  BandsResol=144x96x19  ;; 
     16        LMD144142) BandsResol=144x142x19 ;; 
     17    esac 
     18 
     19 
     20    ##-- Calendar type for LMDZ 
     21    case ${config_UserChoices_CalendarType} in 
     22        leap|gregorian) 
     23            CalendarTypeForLmdz=earth_366d;; 
     24        noleap) 
     25            CalendarTypeForLmdz=earth_365d;; 
     26        360d) 
     27            CalendarTypeForLmdz=earth_360d;; 
     28        *) 
     29            CalendarTypeForLmdz=earth_360d 
     30    esac 
     31 
     32    ##- Default number of processor for lmdz 
     33    NUM_PROC_ATM=1 
     34    if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then 
     35        NUM_PROC_ATM=${BATCH_NUM_PROC_TOT} 
     36    fi 
    937 
    1038    ##--Frequency purpose .... 
     
    1341    ##--  
    1442    OK_journe=n 
    15     OK_mensuel=n 
     43    OK_mensuel=y 
    1644 
    1745    case ${config_UserChoices_PeriodLength} in 
    1846        1Y|1y|1M|1m) OK_mensuel=y ;; 
    19         5D|5d|1D|1d) OK_journe=y ;; 
     47        5D|5d|1D|1d) OK_journe=n ;; 
    2048    esac 
    2149 
    2250    for frequency in ${config_ATM_WriteFrequency} ; do 
    2351        case ${frequency} in 
    24             5D|5d|1D|1d) OK_journe=y ;; 
     52            5D|5d|1D|1d) OK_journe=n ;; 
    2553        esac 
    2654    done 
     
    3563    PAT_day_step=$( grep 'day_step'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    3664    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
     65 
     66 
    3767 
    3868    ##-- This could be define in lmdz.card, inside section [UserChoices] 
     
    6191 
    6292    ## Mise en forme du fichier physiq.def 
    63     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    64         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    65         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     93    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     94        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     95        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    6696        physiq.def > physiq.def.tmp 
    6797    IGCM_sys_Mv physiq.def.tmp physiq.def 
    6898 
    6999    ## Mise en forme du fichier gcm.def 
    70     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    71         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    72         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    73         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     100    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     101        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     102        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     103        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    74104        gcm.def > gcm.def.tmp 
    75105    IGCM_sys_Mv gcm.def.tmp gcm.def 
    76106 
     107    greg_dat=$( IGCM_date_ConvertFormatToGregorian $PeriodDateBegin )  
     108    jul_dat=$( IGCM_date_ConvertGregorianDateToJulian $greg_dat ) 
     109    nbjour=$( expr \( $jul_dat \% 1000 \) )  
     110    yractu=$( expr $greg_dat / 10000  ) 
     111    echo  "dayref = " $nbjour  "year actu = " $yractu 
     112 
    77113    ## Mise en forme du fichier run.def 
    78     sed -e "s/_dayref_/${InitDay}/" \ 
    79         -e "s/_anneeref_/${InitYear}/" \ 
    80         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    81         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     114    sed -e "s/_dayref_/${nbjour}/"                      \ 
     115        -e "s/_anneeref_/${yractu}/"                    \ 
     116        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
     117        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     118        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
    82119        run.def > run.def.tmp 
    83120    IGCM_sys_Mv run.def.tmp run.def 
Note: See TracChangeset for help on using the changeset viewer.