Changeset 1373 for branches/libIGCM/GYRE_LOBSTER/IGCM00
- Timestamp:
- 2009-04-03T15:54:24+02:00 (16 years ago)
- Location:
- branches/libIGCM/GYRE_LOBSTER/IGCM00/COMP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libIGCM/GYRE_LOBSTER/IGCM00/COMP/gyre.card
r1337 r1373 4 4 [UserChoices] 5 5 #-- Number of time step per day for GYRE configuration (default = 12) 6 GYRE_N PDT_JOURS=126 GYRE_NDT_DAY=12 7 7 8 8 [InitialStateFiles] -
branches/libIGCM/GYRE_LOBSTER/IGCM00/COMP/gyre.driver
r1343 r1373 7 7 JOB_NAME=${config_UserChoices_JobName} 8 8 9 O RCA_NPDT_JOUR=${gyre_UserChoices_GYRE_NPDT_JOURS:=12}10 11 # Attention : O RCA_RDT must be an integer12 (( O RCA_RDT = 60 * 60 * 24 / ${ORCA_NPDT_JOUR} ))9 OPA_NDT_DAY=${gyre_UserChoices_GYRE_NDT_DAY:=12} 10 11 # Attention : OPA_RDT must be an integer 12 (( OPA_RDT = 60 * 60 * 24 / ${OPA_NDT_DAY} )) 13 13 14 14 ##--Variables used by OPA -- … … 88 88 case ${frequency} in 89 89 1Y|1y) 90 (( O RCA_NWRITE = ORCA_NPDT_JOUR* factor * $( IGCM_date_DaysInYear ${year} ) )) ;90 (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInYear ${year} ) )) ; 91 91 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 92 92 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; … … 95 95 WF1=${factor}Y ;; 96 96 1M|1m) 97 (( O RCA_NWRITE = ORCA_NPDT_JOUR* factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ;97 (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 98 98 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 99 99 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; … … 102 102 WF1=${factor}M ;; 103 103 *D|*d) 104 (( O RCA_NWRITE = ORCA_NPDT_JOUR* factor )) ;104 (( OPA_NWRITE = OPA_NDT_DAY * factor )) ; 105 105 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 106 106 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; … … 109 109 WF1=${factor}D ;; 110 110 *) 111 (( O RCA_NWRITE = 0 )) ;;111 (( OPA_NWRITE = 0 )) ;; 112 112 esac 113 113 … … 116 116 (( PeriodDaysSinceJC = $( IGCM_date_DaysSinceJC ${PeriodDateBegin} ) + 1 )) 117 117 118 ##-- Calcul du numero de pas de temps de debut de job O RCA119 (( O RCA_NIT000 = ( PeriodDaysSinceJC - DaysSinceJC ) * ORCA_NPDT_JOUR+ 1 ))120 (( O RCA_NPDT = PeriodLengthInDays * ORCA_NPDT_JOUR))121 (( O RCA_NITEND = ORCA_NIT000 + ORCA_NPDT - 1))122 123 ## On force 1 restart par simulation à la fin124 O RCA_NSTOCK="${ORCA_NITEND}"125 126 ##-- verification du nb de pas de temps par jour127 (( NB_SEC_ JOUR_MODEL = ORCA_NPDT_JOUR * ORCA_RDT ))128 (( NB_SEC_ JOUR= 60 * 60 * 24 ))129 130 if [ ${NB_SEC_ JOUR_MODEL} -ne ${NB_SEC_JOUR} ]118 ##-- Calcul du numero de pas de temps de debut de job OPA 119 (( OPA_NIT000 = ( PeriodDaysSinceJC - DaysSinceJC ) * OPA_NDT_DAY + 1 )) 120 (( OPA_NPDT = PeriodLengthInDays * OPA_NDT_DAY )) 121 (( OPA_NITEND = OPA_NIT000 + OPA_NPDT - 1)) 122 123 ## Forcing to write one restart file at the end of period 124 OPA_NSTOCK="${OPA_NITEND}" 125 126 ##-- verification of number of timestep in a day 127 (( NB_SEC_DAY_MODEL = OPA_NDT_DAY * OPA_RDT )) 128 (( NB_SEC_DAY = 60 * 60 * 24 )) 129 130 if [ ${NB_SEC_DAY_MODEL} -ne ${NB_SEC_DAY} ] 131 131 then 132 echo " VERIF IER ORCA_NPDT_JOUR dansgyre.card "132 echo " VERIFY OPA_NDT_DAY in gyre.card " 133 133 exit 134 134 fi … … 143 143 then 144 144 145 #echo " PAS DERESTART OPA"146 O RCA_LRSTAR=.FALSE.147 O RCA_NRSTDT=0148 #echo pas demeshmask en parallele149 O RCA_NMSH=1150 ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) && O RCA_NMSH=0145 #echo "NO RESTART OPA" 146 OPA_LRSTAR=.FALSE. 147 OPA_NRSTDT=0 148 #echo no meshmask en parallele 149 OPA_NMSH=1 150 ( [ X${BATCH_NUM_PROC_TOT} != X ] && [ "${BATCH_NUM_PROC_TOT}" -gt 1 ] ) && OPA_NMSH=0 151 151 152 152 else … … 154 154 # "${config_OCE_Restart}" = "y" 155 155 156 #echo "RESTART OPA" et pas de verif pourcumulperiod=1157 O RCA_LRSTAR=.TRUE.158 O RCA_NRSTDT=0159 O RCA_NMSH=0156 #echo "RESTART OPA" and no verif cumulperiod=1 157 OPA_LRSTAR=.TRUE. 158 OPA_NRSTDT=0 159 OPA_NMSH=0 160 160 fi 161 161 … … 164 164 then 165 165 166 #echo " PAS DERESTART TOP"166 #echo "NO RESTART TOP" 167 167 TOP_LRSTTR=.FALSE. 168 168 TOP_NRSTTR=0 … … 182 182 then 183 183 184 #echo " PAS DERESTART TRENDS"184 #echo "NO RESTART TRENDS" 185 185 TRENDS_LRSTTR=.FALSE. 186 186 … … 197 197 198 198 #echo "RESTART OPA" 199 O RCA_LRSTAR=.TRUE.200 O RCA_NRSTDT=2201 O RCA_NMSH=0199 OPA_LRSTAR=.TRUE. 200 OPA_NRSTDT=2 201 OPA_NMSH=0 202 202 203 203 #echo "RESTART TOP" … … 213 213 case ${config_UserChoices_CalendarType} in 214 214 leap) 215 O RCA_NLEAPY=1;;215 OPA_NLEAPY=1;; 216 216 noleap) 217 O RCA_NLEAPY=0;;217 OPA_NLEAPY=0;; 218 218 360d) 219 O RCA_NLEAPY=30;;219 OPA_NLEAPY=30;; 220 220 *) 221 O RCA_NLEAPY=30221 OPA_NLEAPY=30 222 222 esac 223 223 224 224 typeset -r PRECIS=8 225 NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${O RCA_NITEND} }" ) )225 NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${OPA_NITEND} }" ) ) 226 226 227 227 sed -e "s%${PAT_CEXPER}% cexper=\"${config_UserChoices_JobName}\"%" \ 228 -e "s%${PAT_NIT000}% nit000=${O RCA_NIT000}%" \229 -e "s%${PAT_NITEND}% nitend=${O RCA_NITEND}%" \230 -e "s%${PAT_NWRITE}% nwrite=${O RCA_NWRITE}%" \231 -e "s%${PAT_NTRD}% ntrd=${O RCA_NWRITE}%" \232 -e "s%${PAT_RESTAR}% ln_rstart=${O RCA_LRSTAR}%" \233 -e "s%${PAT_RDT}% rdt=${O RCA_RDT}%" \234 -e "s%${PAT_NSTOCK}% nstock=${O RCA_NSTOCK}%" \235 -e "s%${PAT_NRSTAR}% nrstdt=${O RCA_NRSTDT}%" \228 -e "s%${PAT_NIT000}% nit000=${OPA_NIT000}%" \ 229 -e "s%${PAT_NITEND}% nitend=${OPA_NITEND}%" \ 230 -e "s%${PAT_NWRITE}% nwrite=${OPA_NWRITE}%" \ 231 -e "s%${PAT_NTRD}% ntrd=${OPA_NWRITE}%" \ 232 -e "s%${PAT_RESTAR}% ln_rstart=${OPA_LRSTAR}%" \ 233 -e "s%${PAT_RDT}% rdt=${OPA_RDT}%" \ 234 -e "s%${PAT_NSTOCK}% nstock=${OPA_NSTOCK}%" \ 235 -e "s%${PAT_NRSTAR}% nrstdt=${OPA_NRSTDT}%" \ 236 236 -e "s%${PAT_NDATE0}% ndate0=${PeriodDateBegin}%" \ 237 -e "s%${PAT_NLEAPY}% nleapy=${O RCA_NLEAPY}%" \238 -e "s%${PAT_NMSH}% nmsh=${O RCA_NMSH}%" \237 -e "s%${PAT_NLEAPY}% nleapy=${OPA_NLEAPY}%" \ 238 -e "s%${PAT_NMSH}% nmsh=${OPA_NMSH}%" \ 239 239 -e "s%${PAT_RSTRTTRD}% ln_trdmld_restart=${TRENDS_LRSTTR}%" \ 240 240 namelist > namelist.tmp … … 242 242 IGCM_sys_Mv namelist.tmp namelist 243 243 244 # on force les sorties TOP comme les sorties OPA245 246 sed -e "s%${PAT_TOP_NWRITETRC}% nwritetrc=${O RCA_NWRITE}%" \247 -e "s%${PAT_TOP_NWRITETRD}% ntrd_trc=${O RCA_NWRITE}%" \244 # we force TOP outputs like OPA outputs 245 246 sed -e "s%${PAT_TOP_NWRITETRC}% nwritetrc=${OPA_NWRITE}%" \ 247 -e "s%${PAT_TOP_NWRITETRD}% ntrd_trc=${OPA_NWRITE}%" \ 248 248 -e "s%${PAT_TOP_LRSTTR}% lrsttr=${TOP_LRSTTR}%" \ 249 249 -e "s%${PAT_TOP_NRSTTR}% nrsttr=${TOP_NRSTTR}%" \ … … 253 253 IGCM_sys_Mv namelist_top.tmp namelist_top 254 254 255 # on force les sorties LOBSTER comme les sorties OPA256 257 sed -e "s%${PAT_LOB_NWRITEDIA}% nwritedia=${O RCA_NWRITE}%" \255 # we force LOBSTER outputs like OPA outputs 256 257 sed -e "s%${PAT_LOB_NWRITEDIA}% nwritedia=${OPA_NWRITE}%" \ 258 258 namelist_lobster > namelist_lobster.tmp 259 259
Note: See TracChangeset
for help on using the changeset viewer.