Changeset 1825
- Timestamp:
- 2010-04-02T16:29:27+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CONFIG/ORCA2_LIM/IGCM00/COMP/opa9.driver
r1823 r1825 49 49 (( DaysSinceJC = $( IGCM_date_DaysSinceJC ${DateBegin} ) + 1 )) 50 50 51 # Definition from opa9.card of List_jobsbc used to do to interannual and climatological runs51 # Definition from opa9.card of List_jobsbc and List_runsbc used to do to interannual and climatological runs 52 52 IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/COMP/opa9.card Interannual List_jobsbc 53 53 set -A ListFormulationJobsbc -- \${opa9_Interannual_Listjobsc${opa9_Interannual_List_jobsbc}[*]} … … 71 71 typeset file 72 72 73 (( final_year =${InitYear} + ${PeriodLengthInYears} - 1 )) 73 (( PeriodCumulPeriod = ${CumulPeriod} - 1 )) 74 (( PeriodInitYear =${InitYear} + ${PeriodCumulPeriod} * ${PeriodLengthInYears} )) 75 (( PeriodFinalYear =${InitYear} + ${PeriodLengthInYears}*${CumulPeriod} - 1 )) 76 74 77 NbFileInter=${#opa9_Interannual_List_jobsbc[*]} 75 76 78 (( NbFileInter_tot=${#opa9_Interannual_List_jobsbc[*]} * ${PeriodLengthInYears} )) 77 78 79 (( i = 0 )) 79 80 80 while [ ${year} -le ${ final_year} ] ; do #copy in ONCE of ALL necessary files for all PeriodLength81 while [ ${year} -le ${PeriodFinalYear} ] ; do #copy in ONCE of ALL necessary files for all PeriodLength 81 82 82 83 while [ $i -lt ${NbFileInter} ] ; do 83 84 84 85 eval file=${opa9_Interannual_List_jobsbc[$i]} 85 # download (year-1) if it is first year and first month of run 86 if [ X${year} = X${InitYear} ] ; then 87 if [ X${Period} = X1 ] ; then 86 if [ X${year} = X${PeriodInitYear} ] ; then 88 87 if [ ${month} -eq 01 ] ; then 89 # if year-1 does not exist create a dummy file (NEMO will use same year)88 # if year-1 does not exist we copy year in (year-1) 90 89 eval jobsbc_file_ym1=${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/${file}_$(( year - 1 )).nc 91 90 if [ ! -f ${jobsbc_file_ym1} ] ; then … … 97 96 fi 98 97 99 98 IGCM_sys_Get ${jobsbc_file_ym1} ${runsbc_file_ym1} 100 99 fi 101 fi102 100 fi 103 101 … … 111 109 112 110 # download (year+1) if it is last year of run 113 if [ X${year} = X${ final_year} ] ; then111 if [ X${year} = X${PeriodFinalYear} ] ; then 114 112 115 113 eval jobsbc_file_yp1=${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/${file}_$(( year + 1 )).nc … … 118 116 if [ ! -f ${runsbc_file_yp1} ] ; then 119 117 120 # if year+1 does not exist create a dummy file (NEMO will use same year)118 # if year+1 does not exist we copy year in (year+1) 121 119 if [ ! -f ${jobsbc_file_yp1} ] ; then 122 120 eval jobsbc_file_yp1=${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/${file}_${year}.nc … … 138 136 (( i = 0 )) 139 137 done 138 140 139 # End interannual 141 140 elif [ X${opa9_UserChoices_Interannual_Run} = Xn ] ; then … … 258 257 259 258 259 # update iodef.xml 260 261 if ( [ "${CumulPeriod}" -eq 1 ] || [ "${CumulPeriod}" -eq 6 ] ) ; then 262 263 sed -e "s/<group\ id=\"1m\"\ output_freq=\"-1\"\ output_level=\"10\"\ enabled=\".FALSE.\">/<group\ id=\"1m\"\ output_freq=\"-1\"\ output_level=\"10\"\ enabled=\".TRUE.\">/" \ 264 iodef.xml > iodef.xml.tmp 265 IGCM_sys_Mv iodef.xml.tmp iodef.xml 266 fi 267 268 260 269 # update xmlio_server.def 261 270
Note: See TracChangeset
for help on using the changeset viewer.