Changeset 252 for CONFIG


Ignore:
Timestamp:
02/19/08 10:31:12 (16 years ago)
Author:
sdipsl
Message:

SD : lmdz.driver can work with comments inside physiq.def and correctly
handle high frequency request through config card ATM section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lmdz.driver

    r153 r252  
    1717    ##--  Initialisation  .... 
    1818    OK_instan=n 
    19     ##--  
    2019    OK_journe=n 
    2120    OK_mensuel=n 
     21    ok_hf=n 
    2222 
    2323    case ${config_UserChoices_PeriodLength} in 
     
    3030            5D|5d|1D|1d) OK_journe=y ;; 
    3131        esac 
     32        case ${frequency} in 
     33            HF|hf) ok_hf=y ;; 
     34        esac 
    3235    done 
    3336 
    3437    ##--Variables used by LMDZ -- 
    35     PAT_INST=$(     grep 'OK_instan'   ${SUBMIT_DIR}/PARAM/physiq.def ) 
    36     PAT_JOUR=$(     grep 'OK_journe'   ${SUBMIT_DIR}/PARAM/physiq.def ) 
    37     PAT_MOIS=$(     grep 'OK_mensuel'  ${SUBMIT_DIR}/PARAM/physiq.def ) 
     38    PAT_INST=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_instan'  ) 
     39    PAT_JOUR=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_journe'  ) 
     40    PAT_MOIS=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_mensuel' ) 
     41    PAT_HFRE=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'ok_hf'      ) 
    3842 
    39     PAT_iphysiq=$(  grep 'iphysiq'     ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} ) 
    40     PAT_iperiod=$(  grep 'iperiod'     ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | tail -1) 
    41     PAT_day_step=$( grep 'day_step'    ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} ) 
    42     PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} ) 
     43    PAT_iphysiq=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iphysiq ) 
     44    PAT_iperiod=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iperiod  ) 
     45    PAT_day_step=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep day_step ) 
     46    PAT_ecritphy=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep ecritphy ) 
    4347 
    4448    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    4549    ##-- Otherwise we get the value in *.def 
    46     iperiod=$(grep iperiod ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | awk -F= '{print $2}' | tail -1) 
    47     iphysiq=$(grep iphysiq ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | awk -F= '{print $2}') 
     50    iperiod=$( echo ${PAT_iperiod} | awk -F= '{print $2}' ) 
     51    iphysiq=$( echo ${PAT_iphysiq} | awk -F= '{print $2}' ) 
    4852    # day_step : number of steps per day (multiple of iperiod) 
    4953    (( day_step = 48 * iphysiq )) 
     54 
     55    #[ -f ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_7prc.dat ] && IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_7prc.dat . 
    5056 
    5157    IGCM_debug_PopStack "ATM_Initialize" 
     
    7076        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    7177        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     78        -e "s/ok_hf=.*/ok_hf=${ok_hf}/" \ 
    7279        physiq.def > physiq.def.tmp 
    7380    IGCM_sys_Mv physiq.def.tmp physiq.def 
     
    115122    echo FINALIZE ATM ! 
    116123 
     124    #IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 
     125 
    117126    IGCM_debug_PopStack "ATM_Finalize" 
    118127} 
Note: See TracChangeset for help on using the changeset viewer.