Ignore:
Timestamp:
06/19/09 17:33:46 (15 years ago)
Author:
mafoipsl
Message:

SD+MAF : on the way to 39 levels parametrisation

File:
1 edited

Legend:

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

    r641 r649  
    77    RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' ) 
    88 
    9     case ${RESOL_ATM} in 
    10         LMD4443)   BandsResol=44x43x19   ;; 
    11         LMD7245)   BandsResol=72x45x19   ;; 
    12         LMD5655)   BandsResol=56x55x19   ;; 
    13         LMD9671)   BandsResol=96x71x19   ;; 
    14         LMD9695)   BandsResol=96x95x19   ;; 
    15         LMD9696)   BandsResol=96x96x19   ;; 
    16         LMD14496)  BandsResol=144x96x19  ;; 
    17         LMD144142) BandsResol=144x142x19 ;; 
    18     esac 
     9    [ -f $SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D $SUBMIT_DIR}/../.resol) 
     10    [ -f $SUBMIT_DIR}/../.resol ] || export RESOL_ATM_3D=96x95x19 
     11 
     12    RESOL_ATM_Z=$( echo $RESOL_ATM_3D | awk "-Fx" '{print $3}' ) 
    1913 
    2014    ##--Frequency purpose .... 
     
    4034 
    4135    ##--Variables used by LMDZ in physiq.def -- 
    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='      ) 
     36    PAT_INST=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}  | grep 'OK_instan='  ) 
     37    PAT_JOUR=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}  | grep 'OK_journe='  ) 
     38    PAT_MOIS=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}  | grep 'OK_mensuel=' ) 
     39    PAT_HFRE=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def_L${RESOL_ATM_Z}  | grep 'ok_hf='      ) 
    4640    ##--Variables used by LMDZ in gcm.def -- 
    47     PAT_iphysiq=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iphysiq  ) 
    48     PAT_iperiod=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iperiod  ) 
    49     PAT_day_step=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep day_step ) 
    50     PAT_ecritphy=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep ecritphy ) 
     41    PAT_iphysiq=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D} | grep iphysiq  ) 
     42    PAT_iperiod=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D} | grep iperiod  ) 
     43    PAT_day_step=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D} | grep day_step ) 
     44    PAT_ecritphy=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D} | grep ecritphy ) 
    5145 
    5246    ## Read LMDZ_adjust option in ${compname}.card --> put adjust=y and save Bands_*.dat in ${SUBMIT_DIR}/PARAM 
     
    6256    day_step=$( echo ${PAT_day_step} | awk -F= '{print $2}' ) 
    6357 
    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 . 
     58    #[ -f ${SUBMIT_DIR}/PARAM/Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ] && IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat . 
    6559 
    6660    IGCM_debug_PopStack "ATM_Initialize" 
     
    158152    IGCM_debug_PushStack "ATM_Finalize" 
    159153 
    160     [ ${LMDZ_adjust} = y ] && IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 
     154    [ ${LMDZ_adjust} = y ] && IGCM_sys_Cp Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 
    161155 
    162156    echo FINALIZE ATM ! 
Note: See TracChangeset for help on using the changeset viewer.