Changeset 1329 for CONFIG/LMDZORINCA/tags
- Timestamp:
- 03/02/11 16:11:19 (14 years ago)
- Location:
- CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE/COMP/lmdz.card
r345 r1329 7 7 8 8 [InitialStateFiles] 9 List= (${R_INIT}/CHM/${config_UserChoices_TagName}/AER/INCA9671/start_trac.nc, start_trac.nc)9 List= () 10 10 11 11 [BoundaryFiles] 12 List= (${R_INIT}/ATM/${config_UserChoices_TagName}/Amip6/amipbc_sst_360x180_${year}.nc, amipbc_sst_1x1.nc), \ 13 (${R_INIT}/ATM/${config_UserChoices_TagName}/Amip6/amipbc_sic_360x180_${year}.nc, amipbc_sic_1x1.nc) 12 List= (${R_INIT}/ATM/${config_UserChoices_TagName}/AMIP/amipbc_sst_360x180_${year}.nc, amipbc_sst_1x1.nc), \ 13 (${R_INIT}/ATM/${config_UserChoices_TagName}/AMIP/amipbc_sic_360x180_${year}.nc, amipbc_sic_1x1.nc), \ 14 (${R_INIT}/ATM/${config_UserChoices_TagName}/Ozone/HYBRIDE/v2.clim/tro3_${year}.new.nc, climoz.nc) 15 14 16 ListNonDel= (${R_INIT}/ATM/${config_UserChoices_TagName}/Albedo.nc, .), \ 15 17 (${R_INIT}/ATM/${config_UserChoices_TagName}/ECDYN.nc, .), \ … … 18 20 (${R_INIT}/ATM/${config_UserChoices_TagName}/Rugos.nc, .), \ 19 21 (${R_INIT}/ATM/${config_UserChoices_TagName}/landiceref.nc, .) 22 ### Please, add the o2a.nc file to fit with the coupled configuration associated 23 # (${R_INIT}/ATM/IPSLCM5A/ORCA2.3xLMD9695/o2a.nc, o2a.nc) 20 24 21 25 [ParametersFiles] … … 26 30 27 31 [RestartFiles] 28 List= (start.nc, start.nc, start.nc), \ 29 (startphy.nc, startphy.nc, startphy.nc), \ 30 (limit.nc, limit.nc, limit.nc) 32 List= (NONE) 31 33 32 34 [OutputText] 33 List= ( ftrace.out.1.0)35 List= (physiq.def, gcm.def, run.def, traceur.def, guide.def) 34 36 35 37 [OutputFiles] 36 List= () 38 List= ( limit.nc, ${R_OUT_ATM_O}/Boundary/${config_UserChoices_JobName}_${year}_limit.nc, NONE), \ 39 ( climoz_LMDZ.nc, ${R_OUT_ATM_O}/Boundary/${config_UserChoices_JobName}_${year}_climoz_LMDZ.nc, NONE), \ 40 ( start.nc, ${R_OUT_ATM_O}/Restart/${config_UserChoices_JobName}_${year}_start.nc, NONE), \ 41 ( startphy.nc, ${R_OUT_ATM_O}/Restart/${config_UserChoices_JobName}_${year}_startphy.nc, NONE) 37 42 -
CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE/COMP/lmdz.driver
r888 r1329 1 #- $Id: lmdz.driver 841 2009-12-08 09:48:13Z acosce $2 1 #!/bin/ksh 2 #----------------------------------------------------------------- 3 function LMDZ_sed 4 { 5 IGCM_debug_PushStack "LMDZ_sed" 3 6 4 #----------------------------------------------------------------- 7 sed -e "s/^${2}\ *=.*/${2}= ${3}/" ${1} > ${1}.tmp 8 RET=$? 9 echo "LMDZ_sed : ${1} ${2} ${3}" 10 \mv ${1}.tmp ${1} 11 12 IGCM_debug_PopStack "LMDZ_sed" 13 return $RET 14 } 15 5 16 function ATM_Initialize 6 17 { 7 18 IGCM_debug_PushStack "ATM_Initialize" 8 19 9 RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' ) 10 case ${RESOL_ATM} in 11 LMD7245) BandsResol=72x45x19 ;; 12 LMD9671) BandsResol=96x71x19 ;; 13 LMD9672) BandsResol=96x72x19 ;; 14 LMD9695) BandsResol=96x95x19 ;; 15 LMD14496) BandsResol=144x96x19 ;; 16 LMD144142) BandsResol=144x142x19 ;; 17 esac 20 [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x19 18 21 22 RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' | awk "-F-" '{print $1}' ) 19 23 20 24 ##-- Calendar type for LMDZ 21 25 case ${config_UserChoices_CalendarType} in 22 26 leap|gregorian) 23 CalendarTypeForLmdz= earth_366d;;27 CalendarTypeForLmdz=gregorian;; 24 28 noleap) 25 29 CalendarTypeForLmdz=earth_365d;; … … 30 34 esac 31 35 32 ##- Default number of processor for lmdz 33 NUM_PROC_ATM=1 34 if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then 35 NUM_PROC_ATM=${BATCH_NUM_PROC_TOT} 36 fi 36 ##- PARAM directory 37 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices PARAM_DIR 38 PARAM_DIR=${lmdz_UserChoices_PARAM_DIR} 39 echo parameter file directory : ${PARAM_DIR} 37 40 38 41 ##--Frequency purpose .... 39 42 ##-- Initialisation .... 40 43 OK_instan=n 41 ##--42 44 OK_journe=n 43 OK_mensuel=y 45 OK_mensuel=n 46 ok_hf=n 44 47 45 48 case ${config_UserChoices_PeriodLength} in 46 49 1Y|1y|1M|1m) OK_mensuel=y ;; 47 5D|5d|1D|1d) OK_journe= n;;50 5D|5d|1D|1d) OK_journe=y ;; 48 51 esac 49 52 50 53 for frequency in ${config_ATM_WriteFrequency} ; do 51 54 case ${frequency} in 52 5D|5d|1D|1d) OK_journe=n ;; 55 5D|5d|1D|1d) OK_journe=y ;; 56 esac 57 case ${frequency} in 58 HF|hf) ok_hf=y ;; 53 59 esac 54 60 done 55 56 ##--Variables used by LMDZ --57 PAT_INST=$( grep 'OK_instan' ${SUBMIT_DIR}/PARAM/physiq.def )58 PAT_JOUR=$( grep 'OK_journe' ${SUBMIT_DIR}/PARAM/physiq.def )59 PAT_MOIS=$( grep 'OK_mensuel' ${SUBMIT_DIR}/PARAM/physiq.def )60 61 PAT_iphysiq=$( grep 'iphysiq' ${SUBMIT_DIR}/PARAM/gcm.def )62 PAT_iperiod=$( grep 'iperiod' ${SUBMIT_DIR}/PARAM/gcm.def | tail -1)63 PAT_day_step=$( grep 'day_step' ${SUBMIT_DIR}/PARAM/gcm.def )64 PAT_ecritphy=$( grep 'ecritphy' ${SUBMIT_DIR}/PARAM/gcm.def )65 66 67 68 ##-- This could be define in lmdz.card, inside section [UserChoices]69 ##-- Otherwise we get the value in *.def70 iperiod=$(grep iperiod ${SUBMIT_DIR}/PARAM/gcm.def | awk -F= '{print $2}' | tail -1)71 iphysiq=$(grep iphysiq ${SUBMIT_DIR}/PARAM/gcm.def | awk -F= '{print $2}')72 # day_step : number of steps per day (multiple of iperiod)73 (( day_step = 48 * iphysiq ))74 61 75 62 IGCM_debug_PopStack "ATM_Initialize" … … 81 68 IGCM_debug_PushStack "ATM_Update" 82 69 83 ecritphy=${PeriodLengthInDays} 70 case ${config_UserChoices_PeriodLength} in 71 *Y|*y) 72 LMDZ_ecrit_mth=30. 73 LMDZ_ecrit_ISCCP=30. 74 LMDZ_periodav=30. 75 ;; 76 *) 77 LMDZ_ecrit_mth=${PeriodLengthInDays}. 78 LMDZ_ecrit_ISCCP=${PeriodLengthInDays}. 79 LMDZ_periodav=${PeriodLengthInDays}. 80 ;; 81 esac 84 82 85 83 ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def … … 90 88 fi 91 89 90 LMDZ_adjust=n 92 91 93 ## Mise en forme du fichier physiq.def 94 sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/" \ 95 -e "s/OK_journe=.*/OK_journe=${OK_journe}/" \ 96 -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 97 physiq.def > physiq.def.tmp 98 IGCM_sys_Mv physiq.def.tmp physiq.def 92 ## physiq.def parameters modified from initial physiq_L${RESOL_ATM_Z} 93 LMDZ_sed physiq.def OK_instan ${OK_instan} 94 LMDZ_sed physiq.def OK_journe ${OK_journe} 95 LMDZ_sed physiq.def OK_mensuel ${OK_mensuel} 96 LMDZ_sed physiq.def ok_hf ${ok_hf} 97 LMDZ_sed physiq.def ecrit_mth ${LMDZ_ecrit_mth} 98 LMDZ_sed physiq.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 99 # LMDZ_sed physiq.def ok_mensuelCOSP ${LMDZ_COSP_monthly} 100 # LMDZ_sed physiq.def ok_journeCOSP ${LMDZ_COSP_daily} 101 # LMDZ_sed physiq.def ok_hfCOSP ${LMDZ_COSP_hf} 102 # LMDZ_sed physiq.def ok_histNMC "${LMDZ_NMC_monthly}, ${LMDZ_NMC_daily}, ${LMDZ_NMC_hf}" 99 103 100 ## Mise en forme du fichier gcm.def 101 sed -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 102 -e "s/${PAT_day_step}/day_step=${day_step}/" \ 103 -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 104 -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 105 gcm.def > gcm.def.tmp 106 IGCM_sys_Mv gcm.def.tmp gcm.def 104 ## gcm.def parameters : no change since gcm.def_${RESOL_ATM_3D} is used and already modified 107 105 108 greg_dat=$( IGCM_date_ConvertFormatToGregorian $PeriodDateBegin ) 109 jul_dat=$( IGCM_date_ConvertGregorianDateToJulian $greg_dat ) 110 nbjour=$( expr \( $jul_dat \% 1000 \) ) 111 yractu=$( expr $greg_dat / 10000 ) 112 echo "dayref = " $nbjour "year actu = " $yractu 106 ## run.def parameters 107 LMDZ_sed run.def dayref ${InitDay} 108 LMDZ_sed run.def anneeref ${year} 109 LMDZ_sed run.def calend ${CalendarTypeForLmdz} 110 LMDZ_sed run.def nday ${PeriodLengthInDays} 111 LMDZ_sed run.def raz_date ${RAZ_DATE} 112 LMDZ_sed run.def periodav ${LMDZ_periodav} 113 LMDZ_sed run.def adjust ${LMDZ_adjust} 114 LMDZ_sed run.def use_filtre_fft n 115 if ( ${FirstInitialize} ) ; then 113 116 114 ## Mise en forme du fichier run.def 115 sed -e "s/_dayref_/${nbjour}/" \ 116 -e "s/_anneeref_/${yractu}/" \ 117 -e "s/_calend_/${CalendarTypeForLmdz}/" \ 118 -e "s/_nday_/${PeriodLengthInDays}/" \ 119 -e "s/_raz_date_/${RAZ_DATE}/" \ 120 run.def > run.def.tmp 121 IGCM_sys_Mv run.def.tmp run.def 117 echo cat run 118 cat run.def 119 120 fi 122 121 123 122 IGCM_debug_PopStack "ATM_Update" -
CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE/config.card
r888 r1329 1 # $Id$ 1 2 #======================================================================== 2 3 #D-- Compatibility - … … 9 10 #============================ 10 11 #D-- (<8 chars MAX for JobName) 11 JobName= EL- LMD967212 LongName= 'Call for create_etat0_limit for AMIP run.'12 JobName= EL-96x95x19 13 LongName="create_etat0_limit for interannuel run" 13 14 TagName=LMDZORINCA 14 15 #============================ 15 16 #D-- leap, noleap, 360d 16 17 CalendarType=leap 17 #D-- Début et fin de Job18 #D-- Begin and end of job 18 19 #D-- "YYYY-MM-DD" 19 DateBegin= 2000-01-0120 DateEnd=2005-12-3 020 DateBegin=1979-01-01 21 DateEnd=2005-12-31 21 22 #============================ 22 23 #D-- 1Y, 1M, 5D, 1D … … 29 30 [ListOfComponents] 30 31 #D- For each component, Name of component, Tag of component 31 ATM= (lmdz, LMDZ4 _V3_1)32 ATM= (lmdz, LMDZ4) 32 33 33 34 #======================================================================== … … 45 46 #D- Last day of the experience used as restart 46 47 RestartDate= 47 #D- Define restart simulation name (=> JOB_OS)48 #D- Define restart simulation name 48 49 RestartJobName= 49 #D- Path Server Group Login (=> PSGL)50 #D- Path Server Group Login 50 51 RestartPath= 51 52 # Attention login depend de la machine … … 70 71 #D-- NO Post - 71 72 [Post] 72 RebuildFrequency= 73 MonitoringFrequency= 74 TimeSeriesFrequency= 75 SeasonalFrequency= 73 RebuildFrequency=NONE 74 TimeSeriesFrequency=NONE 75 SeasonalFrequency=NONE 76 76 #========================================================================
Note: See TracChangeset
for help on using the changeset viewer.