Changeset 289
- Timestamp:
- 03/17/08 17:54:20 (17 years ago)
- Location:
- CONFIG/trunk/IPSLCM4_v2/EXP00
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lmdz.card
r253 r289 3 3 4 4 [UserChoices] 5 ByPass_hgardfou = n 6 LMDZ_adjust = n 5 7 6 8 [InitialStateFiles] … … 14 16 (${R_INIT}/ATM/${config_UserChoices_TagName}/landiceref.nc, .), \ 15 17 (${R_INIT}/ATM/${config_UserChoices_TagName}/${RESOL}/o2a.nc, .) 16 17 18 18 19 [BoundaryFiles] -
CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lmdz.driver
r284 r289 36 36 done 37 37 38 ##--Variables used by LMDZ --38 ##--Variables used by LMDZ in physiq.def -- 39 39 PAT_INST=$( grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def | grep 'OK_instan' ) 40 40 PAT_JOUR=$( grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def | grep 'OK_journe' ) 41 41 PAT_MOIS=$( grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def | grep 'OK_mensuel' ) 42 42 PAT_HFRE=$( grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def | grep 'ok_hf' ) 43 43 ##--Variables used by LMDZ in gcm.def -- 44 44 PAT_iphysiq=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iphysiq ) 45 45 PAT_iperiod=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iperiod ) 46 46 PAT_day_step=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep day_step ) 47 47 PAT_ecritphy=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep ecritphy ) 48 49 ## Read LMDZ_adjust option in ${compname}.card --> put adjust=y and save Bands_*.dat in ${SUBMIT_DIR}/PARAM 50 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_adjust 51 eval LMDZ_adjust=\${${compname}_UserChoices_LMDZ_adjust} > /dev/null 2>&1 48 52 49 53 ##-- This could be define in lmdz.card, inside section [UserChoices] … … 74 78 75 79 ## Mise en forme du fichier physiq.def 76 sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/" \77 -e "s/OK_journe=.*/OK_journe=${OK_journe}/" \80 sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/" \ 81 -e "s/OK_journe=.*/OK_journe=${OK_journe}/" \ 78 82 -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 79 -e "s/ok_hf=.*/ok_hf=${ok_hf}/" \83 -e "s/ok_hf=.*/ok_hf=${ok_hf}/" \ 80 84 physiq.def > physiq.def.tmp 81 85 IGCM_sys_Mv physiq.def.tmp physiq.def 82 86 83 87 ## Mise en forme du fichier gcm.def 84 sed -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"\85 -e "s/${PAT_day_step}/day_step=${day_step}/" \86 -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \87 -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \88 sed -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 89 -e "s/${PAT_day_step}/day_step=${day_step}/" \ 90 -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 91 -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 88 92 gcm.def > gcm.def.tmp 89 93 IGCM_sys_Mv gcm.def.tmp gcm.def 90 94 91 95 ## Mise en forme du fichier run.def 92 sed -e "s/_dayref_/${InitDay}/" \ 93 -e "s/_anneeref_/${InitYear}/" \ 94 -e "s/_nday_/${PeriodLengthInDays}/" \ 95 -e "s/_raz_date_/${RAZ_DATE}/" \ 96 sed -e "s/_dayref_/${InitDay}/" \ 97 -e "s/_anneeref_/${InitYear}/" \ 98 -e "s/_nday_/${PeriodLengthInDays}/" \ 99 -e "s/_raz_date_/${RAZ_DATE}/" \ 100 -e "s/_adjust_/${LMDZ_adjust}/" \ 96 101 run.def > run.def.tmp 97 102 IGCM_sys_Mv run.def.tmp run.def 103 104 ## Read ByPass_hgardfou option in ${compname}.card --> divide teta* by 2 if [ $ByPass_hgardfou = 1 ] 105 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou 106 eval ByPass_hgardfou=\${${compname}_UserChoices_ByPass_hgardfou} > /dev/null 2>&1 107 if [ ${ByPass_hgardfou} = y ] ; then 108 awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 109 IGCM_sys_Mv gcm.def.tmp gcm.def 110 echo 111 IGCM_debug_Print 1 "ByPass_hgardfou : ^teta*/2 in gcm.def" 112 echo 113 cat gcm.def 114 ByPass_hgardfou=n 115 IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou "${ByPass_hgardfou}" 116 fi 98 117 99 118 if ( ${FirstInitialize} ) ; then … … 111 130 fi 112 131 113 fi 132 fi 114 133 115 134 IGCM_debug_PopStack "ATM_Update" … … 121 140 IGCM_debug_PushStack "ATM_Finalize" 122 141 142 [ ${LMDZ_adjust} = y ] && IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 143 123 144 echo FINALIZE ATM ! 124 125 #IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM126 145 127 146 IGCM_debug_PopStack "ATM_Finalize" -
CONFIG/trunk/IPSLCM4_v2/EXP00/PARAM/run.def
r288 r289 22 22 periodav=30. 23 23 ## activation du calcul d equilibrage de charge 24 adjust= n24 adjust=_adjust_
Note: See TracChangeset
for help on using the changeset viewer.