Changeset 1371 for branches/libIGCM/ORCA2_LIM
- Timestamp:
- 2009-04-02T10:00:31+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libIGCM/ORCA2_LIM/IGCM00/COMP/opa9.driver
r1369 r1371 43 43 PAT_NMSH=$( supergrep nmsh ${SUBMIT_DIR}/PARAM/namelist ) 44 44 45 OPA_NSTOCK=$( echo $PAT_NSTOCK | sed "s/[a-z,A-Z,=]//g" )46 45 OPA_RDT=$( supergrep rdt ${SUBMIT_DIR}/PARAM/namelist | sed 's/ *rdt *=//' | sed 's/\. *,//' ) 47 46 … … 66 65 case ${frequency} in 67 66 1Y|1y) 68 (( OPA_NWRITE = OPA_N PDT_JOUR* factor * $( IGCM_date_DaysInYear ${year} ) )) ;67 (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInYear ${year} ) )) ; 69 68 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 70 69 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; … … 72 71 WF1=${factor}Y ;; 73 72 1M|1m) 74 (( OPA_NWRITE = OPA_N PDT_JOUR* factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ;73 (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 75 74 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 76 75 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; … … 78 77 WF1=${factor}M ;; 79 78 *D|*d) 80 (( OPA_NWRITE = OPA_N PDT_JOUR* factor )) ;79 (( OPA_NWRITE = OPA_NDT_DAY * factor )) ; 81 80 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 82 81 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; … … 92 91 93 92 ## Count of number of time steps from begin of OPA job 94 (( O RCA_NIT000 = ( PeriodDaysSinceJC - DaysSinceJC ) * OPA_NDT_DAY + 1 ))93 (( OPA_NIT000 = ( PeriodDaysSinceJC - DaysSinceJC ) * OPA_NDT_DAY + 1 )) 95 94 (( OPA_NDT = PeriodLengthInDays * OPA_NDT_DAY )) 96 (( O RCA_NITEND = ORCA_NIT000 + OPA_NDT - 1))95 (( OPA_NITEND = OPA_NIT000 + OPA_NDT - 1)) 97 96 98 ## Forcing to write one restart file at the end of PeriodNb99 O RCA_NSTOCK="${ORCA_NITEND}"97 ## Forcing to write one restart file at the end of period 98 OPA_NSTOCK="${OPA_NITEND}" 100 99 101 100 ## Verification of number of time step in a day 102 (( NB_SEC_DAY_MODEL = OPA_NDT_DAY * O RCA_RDT ))101 (( NB_SEC_DAY_MODEL = OPA_NDT_DAY * OPA_RDT )) 103 102 (( NB_SEC_DAY = 60 * 60 * 24 )) 104 103 105 if [ ${NB_SEC_ JOUR_MODEL} -ne ${NB_SEC_JOUR} ]104 if [ ${NB_SEC_DAY_MODEL} -ne ${NB_SEC_DAY} ] 106 105 then 107 echo " VERIFIER OPA_N PDT_JOURdans le job ${JOB} "106 echo " VERIFIER OPA_NDT_DAY dans le job ${JOB} " 108 107 exit 109 108 fi
Note: See TracChangeset
for help on using the changeset viewer.