Changeset 252 for CONFIG/trunk/IPSLCM4_v2
- Timestamp:
- 02/19/08 10:31:12 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lmdz.driver
r153 r252 17 17 ##-- Initialisation .... 18 18 OK_instan=n 19 ##--20 19 OK_journe=n 21 20 OK_mensuel=n 21 ok_hf=n 22 22 23 23 case ${config_UserChoices_PeriodLength} in … … 30 30 5D|5d|1D|1d) OK_journe=y ;; 31 31 esac 32 case ${frequency} in 33 HF|hf) ok_hf=y ;; 34 esac 32 35 done 33 36 34 37 ##--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' ) 38 42 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 ) 43 47 44 48 ##-- This could be define in lmdz.card, inside section [UserChoices] 45 49 ##-- 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}' ) 48 52 # day_step : number of steps per day (multiple of iperiod) 49 53 (( day_step = 48 * iphysiq )) 54 55 #[ -f ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_7prc.dat ] && IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_7prc.dat . 50 56 51 57 IGCM_debug_PopStack "ATM_Initialize" … … 70 76 -e "s/OK_journe=.*/OK_journe=${OK_journe}/" \ 71 77 -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 78 -e "s/ok_hf=.*/ok_hf=${ok_hf}/" \ 72 79 physiq.def > physiq.def.tmp 73 80 IGCM_sys_Mv physiq.def.tmp physiq.def … … 115 122 echo FINALIZE ATM ! 116 123 124 #IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 125 117 126 IGCM_debug_PopStack "ATM_Finalize" 118 127 }
Note: See TracChangeset
for help on using the changeset viewer.