Ignore:
Timestamp:
06/12/09 14:13:43 (15 years ago)
Author:
sdipsl
Message:
  • manage iphysiq indepedantly from day_step
  • tweak time series variable
  • add area variable in time series files to ease monitoring process
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_WORK/EXP00/COMP/lmdz.driver

    r583 r641  
    1313        LMD9671)   BandsResol=96x71x19   ;; 
    1414        LMD9695)   BandsResol=96x95x19   ;; 
     15        LMD9696)   BandsResol=96x96x19   ;; 
    1516        LMD14496)  BandsResol=144x96x19  ;; 
    1617        LMD144142) BandsResol=144x142x19 ;; 
     
    3940 
    4041    ##--Variables used by LMDZ in physiq.def -- 
    41     PAT_INST=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_instan'  ) 
    42     PAT_JOUR=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_journe'  ) 
    43     PAT_MOIS=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_mensuel' ) 
    44     PAT_HFRE=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'ok_hf'      ) 
     42    PAT_INST=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_instan='  ) 
     43    PAT_JOUR=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_journe='  ) 
     44    PAT_MOIS=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_mensuel=' ) 
     45    PAT_HFRE=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'ok_hf='      ) 
    4546    ##--Variables used by LMDZ in gcm.def -- 
    4647    PAT_iphysiq=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iphysiq  ) 
     
    5859    iphysiq=$( echo ${PAT_iphysiq} | awk -F= '{print $2}' ) 
    5960    # day_step : number of steps per day (multiple of iperiod) 
    60     (( day_step = 48 * iphysiq )) 
     61    #(( day_step = 48 * iphysiq )) 
     62    day_step=$( echo ${PAT_day_step} | awk -F= '{print $2}' ) 
    6163 
    62     #[ -f ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_7prc.dat ] && IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_7prc.dat . 
     64    #[ -f ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ] && IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat . 
    6365 
    6466    IGCM_debug_PopStack "ATM_Initialize" 
     
    8082 
    8183    ## Mise en forme du fichier physiq.def 
    82     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"    \ 
    83         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"    \ 
    84         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
    85         -e "s/ok_hf=.*/ok_hf=${ok_hf}/"                \ 
     84    sed -e "s/${PAT_INST}/OK_instan=${OK_instan}/"    \ 
     85        -e "s/${PAT_JOUR}/OK_journe=${OK_journe}/"    \ 
     86        -e "s/${PAT_MOIS}/OK_mensuel=${OK_mensuel}/" \ 
     87        -e "s/${PAT_HFRE}/ok_hf=${ok_hf}/"            \ 
    8688        physiq.def > physiq.def.tmp 
    8789    IGCM_sys_Mv physiq.def.tmp physiq.def 
Note: See TracChangeset for help on using the changeset viewer.