Changeset 1764 for trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP
- Timestamp:
- 2009-11-25T17:05:52+01:00 (15 years ago)
- Location:
- trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/lim2.card
r1379 r1764 21 21 22 22 [OutputFiles] 23 List= (${PREFIX_ NWRITE}_${DATE_OPA}_icemod.nc, ${R_OUT_ICE_NWRITE}/${PREFIX}_${WF1}_icemod.nc, Post_1M_icemod)23 List= (${PREFIX_WFI1}_icemod.nc, ${R_OUT_ICE_WFI1}/${PREFIX}_${WFI1}_icemod.nc, Post_5D_icemod) 24 24 25 25 [Post_1M_icemod] 26 26 Patches = () 27 GatherWithInternal = (nav_lon, nav_lat, deptht,time_counter)27 GatherWithInternal = (nav_lon, nav_lat, time_counter) 28 28 TimeSeriesVars = (iicethic, ileadfra, isnowthi, iicevelu, iicevelv) -
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/lim2.driver
r1379 r1764 16 16 IGCM_debug_PushStack "ICE_Update" 17 17 18 NbFreq=$( echo ${config_ICE_WriteFrequency} | wc -w ) 19 20 ##--Write Frequency Purpose .... 21 typeset -Z1 i=1 22 while [ $i -le ${NbFreq} ]; do 23 frequency=$( echo ${config_ICE_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 24 factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 25 case ${frequency} in 26 *Y|*y) 27 eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}y_${DatesPeriod} ; 28 eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_Y} ; 29 eval WFI${i}=${factor}Y ;; 30 *M|*m) 31 eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}m_${DatesPeriod} ; 32 eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_M} ; 33 eval WFI${i}=${factor}M ;; 34 *D|*d) 35 eval PREFIX_WFI${i}=${config_UserChoices_JobName}_${factor}d_${DatesPeriod} ; 36 eval R_OUT_ICE_WFI${i}=${R_OUT_ICE_O_D} ; 37 eval WFI${i}=${factor}D ;; 38 *) 39 esac 40 let i=$i+1 41 42 done 18 43 echo UPDATE ICE !!! 19 44 -
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/opa9.card
r1631 r1764 6 6 #============================================================== 7 7 #-- Name of directory for COMMON ACCOUNT at idris or CCRT 8 #-- available directories are: v3, v3_1 9 #-- related to NEMO_tag_revision (nemo_v3, nemo_v3_1 )8 #-- available directories are: v3, v3_1, v3_2 9 #-- related to NEMO_tag_revision (nemo_v3, nemo_v3_1, nemo_v3_2_beta) 10 10 #-- NOTE: if you use your own directory you have to comment it 11 OPA_version=v3_ 111 OPA_version=v3_2 12 12 #============================================================== 13 13 14 #-- if you run interannual is "y", if not is "n" 14 #=================================== 15 #-- Use (y) or not (n) of io_server 16 io_server=n 17 #=================================== 18 19 #-- if you run interannual is "y", if not (=climatology) is "n" 15 20 Interannual_Run=n 16 21 … … 24 29 #-- MANDATORY: NAMES USED IN List_jobsbc VARIABLE MUST BE ONLY THE BASENAME 25 30 26 List_jobsbc=(taux_1m, tauy_1m, flx) 31 # default climatology, bulk_clio: 32 List_jobsbc=(flx, taux_1m, tauy_1m) 33 # example for interannual, bulk core: 34 #List_jobsbc=(radlw_DFS4-ORCA2, radsw_DFS4-ORCA2, q2_DFS4-ORCA2, t2_DFS4-ORCA2, u10_DFS4-ORCA2, v10_DFS4-ORCA2, snow_DFS4-ORCA2, precip_DFS4-ORCA2) 27 35 28 36 #========================================================================================== … … 33 41 #-- 2) leave List_runsbc empty so NEMO will read file names specified in List_jobsbc variable above 34 42 43 # default climatology, bulk_clio: 35 44 List_runsbc=() 45 # example for interannual, bulk core: 46 #List_runsbc=(qlw_core, qsw_core, q2_core, t2_core, u10_core, v10_core, snow_core, precip_core) 36 47 37 48 [InitialStateFiles] … … 53 64 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/subbasins.nc, .) 54 65 66 55 67 [ParametersFiles] 56 List= (${SUBMIT_DIR}/PARAM/namelist, namelist) 68 List= (${SUBMIT_DIR}/PARAM/namelist, namelist), \ 69 (${SUBMIT_DIR}/PARAM/iodef.xml, iodef.xml), \ 70 (${SUBMIT_DIR}/PARAM/xmlio_server.def, xmlio_server.def) 57 71 58 72 [RestartFiles] … … 60 74 61 75 [OutputText] 62 List= (ocean.output, solver.stat, STRAIT.dat )76 List= (ocean.output, solver.stat, STRAIT.dat, out_nemo) 63 77 64 78 [OutputFiles] 65 List= (${PREFIX_NWRITE}_${DATE_OPA}_grid_T.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_T.nc, Post_1M_grid_T),\ 66 (${PREFIX_NWRITE}_${DATE_OPA}_grid_U.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_U.nc, Post_1M_grid_U) ,\ 67 (${PREFIX_NWRITE}_${DATE_OPA}_grid_V.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_V.nc, Post_1M_grid_V),\ 68 (${PREFIX_NWRITE}_${DATE_OPA}_grid_W.nc, ${R_OUT_OCE_NWRITE}/${PREFIX}_${WF1}_grid_W.nc, Post_1M_grid_W),\ 69 (damping.coeff.nc , ${R_OUT_OCE_NWRITE}/${PREFIX}_damping.coeff.nc, NONE),\ 70 (mesh_mask.nc , ${R_OUT_OCE_O}/${config_UserChoices_JobName}_mesh_mask.nc, NONE),\ 71 (output.abort.nc , ${R_OUT_OCE_D}/${PREFIX}_output.abort.nc, NONE),\ 72 (output.init.nc , ${R_OUT_OCE_O_I}/${config_UserChoices_JobName}_${PeriodDateBegin}_output.init.nc, NONE) 79 List= (${PREFIX_WF1}_grid_T.nc, ${R_OUT_OCE_WF1}/${PREFIX}_${WF1}_grid_T.nc, Post_1Y_grid_T),\ 80 (${PREFIX_WF2}_grid_T.nc, ${R_OUT_OCE_WF2}/${PREFIX}_${WF2}_grid_T.nc, Post_1M_grid_T),\ 81 (${PREFIX_WF3}_grid_T.nc, ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_T.nc, Post_5D_grid_T),\ 82 (${PREFIX_WF3}_grid_U.nc, ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_U.nc, Post_5D_grid_U) ,\ 83 (${PREFIX_WF3}_grid_V.nc, ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_V.nc, Post_5D_grid_V),\ 84 (${PREFIX_WF3}_grid_W.nc, ${R_OUT_OCE_WF3}/${PREFIX}_${WF3}_grid_W.nc, Post_5D_grid_W),\ 85 (${PREFIX_WF4}_grid_T_0n180w.nc, ${R_OUT_OCE_WF4}/${PREFIX}_${WF4}_grid_T_0n180w.nc, NONE ),\ 86 (${PREFIX_WF4}_grid_T_Eq.nc, ${R_OUT_OCE_WF4}/${PREFIX}_${WF4}_grid_T_Eq.nc, NONE ),\ 87 (${PREFIX_WF4}_diaptr.nc, ${R_OUT_OCE_WF4}/${PREFIX}_${WF4}_diaptr.nc, Post_1D_diaptr),\ 88 (mesh_mask.nc , ${R_OUT_OCE_O}/${config_UserChoices_JobName}_mesh_mask.nc, NONE),\ 89 (output.abort.nc , ${R_OUT_OCE_D}/${PREFIX}_output.abort.nc, NONE),\ 90 (output.init.nc , ${R_OUT_OCE_O_I}/${config_UserChoices_JobName}_${PeriodDateBegin}_output.init.nc, NONE) 73 91 74 92 75 93 [Post_1M_grid_T] 76 Patches = ( )94 Patches = (Patch_20091030_histcom_time_axis) 77 95 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 78 96 TimeSeriesVars = (sohtc300, sohefldo, soicecov, somxl010, sosaline, sossheig, sosstsst, sowaflcd, sowaflup) 79 97 80 [Post_1M_grid_U] 81 Patches = () 98 [Post_1Y_grid_T] 99 Patches = (Patch_20091030_histcom_time_axis) 100 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 101 TimeSeriesVars = (sohtc300, sohefldo, soicecov, somxl010, sosaline, sossheig, sosstsst, sowaflcd, sowaflup) 102 103 [Post_5D_grid_T] 104 Patches = (Patch_20091030_histcom_time_axis) 105 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 106 TimeSeriesVars = (sohtc300, sohefldo, soicecov, somxl010, sosaline, sossheig, sosstsst, sowaflcd, sowaflup) 107 108 [Post_5D_grid_U] 109 Patches = (Patch_20091030_histcom_time_axis) 82 110 GatherWithInternal = (nav_lon, nav_lat, depthu, time_counter) 83 111 TimeSeriesVars = (sozotaux) 84 112 85 [Post_ 1M_grid_V]86 Patches = ( )113 [Post_5D_grid_V] 114 Patches = (Patch_20091030_histcom_time_axis) 87 115 GatherWithInternal = (nav_lon, nav_lat, depthv, time_counter) 88 116 TimeSeriesVars = (sometauy) 89 117 90 [Post_ 1M_grid_W]91 Patches = ( )118 [Post_5D_grid_W] 119 Patches = (Patch_20091030_histcom_time_axis) 92 120 GatherWithInternal = (nav_lon, nav_lat, depthw, time_counter) 93 121 TimeSeriesVars = 122 123 [Post_1D_diaptr] 124 Patches = () 125 GatherWithInternal = (lat, deptht, depthw, time_counter) 126 TimeSeriesVars = (zotemglo, zosalglo, zomsfglo, zotematl, zosalatl, zomsfatl, zotempac, zosalpac, zomsfpac, zotemind, zosalind, zomsfind, zotemipc, zosalipc, zomsfipc, sohtatl, sostatl, sohtpac, sostpac, sohtind, sostind, sohtipc, sostipc, sophtadv, sophtove, sophtldf, sopstadv, sopstove, zomsfeiv, sophteiv, sopsteiv) 127 128 [Post_time] 129 Patches = (Patch_20091030_histcom_time_axis) 130 GatherWithInternal = 131 TimeSeriesVars = 132 -
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/opa9.driver
r1631 r1764 36 36 PAT_NITEND=$( supergrep nn_itend ${SUBMIT_DIR}/PARAM/namelist ) 37 37 PAT_NLEAPY=$( supergrep nn_leapy ${SUBMIT_DIR}/PARAM/namelist ) 38 PAT_NWRITE=$( supergrep nn_write ${SUBMIT_DIR}/PARAM/namelist )39 38 PAT_RESTAR=$( supergrep ln_rstart ${SUBMIT_DIR}/PARAM/namelist ) 40 39 PAT_NSTOCK=$( supergrep nn_stock ${SUBMIT_DIR}/PARAM/namelist ) … … 42 41 PAT_NDATE0=$( supergrep nn_date0 ${SUBMIT_DIR}/PARAM/namelist ) 43 42 PAT_NMSH=$( supergrep nn_msh ${SUBMIT_DIR}/PARAM/namelist ) 44 PAT_NF_PTR=$( supergrep nf_ptr_wri ${SUBMIT_DIR}/PARAM/namelist )45 43 46 44 … … 57 55 set -A ListFormulationRunsbc -- \${opa9_Interannual_Listrunsbc${opa9_Interannual_List_runsbc}[*]} 58 56 57 ##--Variables used for XMLIO_SERVER configuration file 58 # using_server: .TRUE.(.FALSE.) to use(bypass) the io_server 59 PAT_SERVER=$( supergrep using_server ${SUBMIT_DIR}/PARAM/xmlio_server.def ) 60 59 61 IGCM_debug_PopStack "OCE_Initialize" 60 62 } … … 138 140 139 141 ##--Write Frequency Purpose .... 140 frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 141 factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 142 case ${frequency} in 143 1Y|1y) 144 (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInYear ${year} ) )) ; 145 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 146 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; 147 R_OUT_ICE_NWRITE=${R_OUT_ICE_O_Y} ; 148 WF1=${factor}Y ;; 149 1M|1m) 150 (( OPA_NWRITE = OPA_NDT_DAY * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 151 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 152 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; 153 R_OUT_ICE_NWRITE=${R_OUT_ICE_O_M} ; 154 WF1=${factor}M ;; 155 *D|*d) 156 (( OPA_NWRITE = OPA_NDT_DAY * factor )) ; 157 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 158 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; 159 R_OUT_ICE_NWRITE=${R_OUT_ICE_O_D} ; 160 WF1=${factor}D ;; 161 *) 162 (( OPA_NWRITE = 0 )) ;; 163 esac 164 142 typeset -Z1 i=1 143 while [ $i -le ${NbFreq} ]; do 144 frequency=$( echo ${config_OCE_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 145 factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 146 case ${frequency} in 147 *Y|*y) 148 eval PREFIX_WF${i}=${config_UserChoices_JobName}_${factor}y_${DatesPeriod} ; 149 eval R_OUT_OCE_WF${i}=${R_OUT_OCE_O_Y} ; 150 eval WF${i}=${factor}Y ;; 151 *M|*m) 152 eval PREFIX_WF${i}=${config_UserChoices_JobName}_${factor}m_${DatesPeriod} ; 153 eval R_OUT_OCE_WF${i}=${R_OUT_OCE_O_M} ; 154 eval WF${i}=${factor}M ;; 155 *D|*d) 156 eval PREFIX_WF${i}=${config_UserChoices_JobName}_${factor}d_${DatesPeriod} ; 157 eval R_OUT_OCE_WF${i}=${R_OUT_OCE_O_D} ; 158 eval WF${i}=${factor}D ;; 159 *) 160 esac 161 let i=$i+1 162 163 done 165 164 # Period Length In Days between DateBegin and first day of calendar 0001 01 01 166 165 # Needed by OPA namelist to compute correct file names … … 228 227 -e "s%${PAT_NIT000}% nn_it000=${OPA_NIT000}%" \ 229 228 -e "s%${PAT_NITEND}% nn_itend=${OPA_NITEND}%" \ 230 -e "s%${PAT_NWRITE}% nn_write=${OPA_NWRITE}%" \231 229 -e "s%${PAT_RESTAR}% ln_rstart=${OPA_LRSTAR}%" \ 232 230 -e "s%${PAT_NSTOCK}% nn_stock=${OPA_NSTOCK}%" \ … … 235 233 -e "s%${PAT_NMSH}% nn_msh=${OPA_NMSH}%" \ 236 234 -e "s%${PAT_NLEAPY}% nn_leapy=${OPA_NLEAPY}%" \ 237 -e "s%${PAT_NF_PTR}% nf_ptr_wri=${OPA_NWRITE}%" \238 235 namelist > namelist.tmp 239 236 240 237 IGCM_sys_Mv namelist.tmp namelist 241 238 242 echo 'Variables automatically updated in namelists' 243 grep AUTO namelist* 244 239 # update xmlio_server.def 240 241 if [ X${opa9_UserChoices_io_server} = Xy ] ; then 242 sed -e "s/${PAT_SERVER}/ using_server = .TRUE./" \ 243 xmlio_server.def > xmlio_server.def.tmp 244 IGCM_sys_Mv xmlio_server.def.tmp xmlio_server.def 245 fi 246 245 247 IGCM_debug_PopStack "OCE_Update" 246 248 } -
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/pisces.card
r1652 r1764 14 14 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_NO3_nomask.nc, .), \ 15 15 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_PO4_nomask.nc, .), \ 16 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_Si_nomask.nc, .), \16 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_Si_nomask.nc, .), \ 17 17 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_DOC_nomask.nc, .), \ 18 18 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/data_1m_Fer_nomask.nc, .), \ … … 21 21 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/bathy.orca.nc, .), \ 22 22 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/river.orca.nc, .), \ 23 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/ndeposition.orca.nc, .) , \23 (${R_BC}/OCE/${config_UserChoices_TagName}/${opa9_UserChoices_OPA_version}/ndeposition.orca.nc, .) 24 24 25 25 [ParametersFiles] 26 26 List= (${SUBMIT_DIR}/PARAM/namelist_top, .), \ 27 (${SUBMIT_DIR}/PARAM/namelist_pisces, .)27 (${SUBMIT_DIR}/PARAM/namelist_pisces, .), \ 28 28 29 29 [RestartFiles] … … 31 31 32 32 [OutputText] 33 List= ( namelist_top, namelist_pisces)33 List= () 34 34 35 35 [OutputFiles] 36 List= (${PREFIX_NWRITETRC}_${DATE_OPA}_ptrc_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_ptrc_T.nc, Post_1M_ptrc_T), \ 37 (${PREFIX_NWRITETRC}_${DATE_OPA}_diad_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_diad_T.nc, Post_1M_diad_T) 36 List= (${PREFIX_WFT1}_ptrc_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_ptrc_T.nc, NONE), \ 37 (${PREFIX_WFT1}_diad_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_diad_T.nc, NONE), \ 38 (${PREFIX_WFT2}_ptrc_T.nc, ${R_OUT_MBG_WFT2}/${PREFIX}_${WFT2}_ptrc_T.nc, Post_1M_ptrc_T), \ 39 (${PREFIX_WFT3}_diad_T.nc, ${R_OUT_MBG_WFT3}/${PREFIX}_${WFT3}_diad_T.nc, Post_5D_ptrc_T) 38 40 39 [Post_1M_ptrc_T]40 Patches= ()41 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter)42 TimeSeriesVars = (DCHL, NCHL, NO3, PO4, O2, Si, Fer, DIC, Alkalini, DOC)43 44 [Post_1M_diad_T]45 Patches = ()46 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter)47 TimeSeriesVars = (PMO, PMO2, Delc, Cflx, PPPHY, PPPHY2)48 -
trunk/CONFIG/ORCA2_LIM_PISCES/IGCM00/COMP/pisces.driver
r1631 r1764 6 6 IGCM_debug_PushStack "MBG_Initialize" 7 7 8 ##--Variables used by MBG --9 10 # nwritetrc frequency of write in the tracer output file11 # lrsttr boolean term for tracer model restart (true or false)12 # nrsttr control of the time step (0, 1 or 2)13 # ntrd_trc time step frequency of write in the trends file for tracers14 # ln_trdmld_trc_restart boolean term for trc trends restart (true or false)15 16 ##--Variables used by PISCES --17 18 # nwritedia frequency of write in the additional diag output file19 20 8 # Local function to find namelists parameters 21 9 supergrep () { … … 23 11 } 24 12 25 PAT_TOP_NWRITETRC=$( supergrep nwritetrc ${SUBMIT_DIR}/PARAM/namelist_top ) 13 ##--Variables used by MBG -- 14 15 # lrsttr boolean term for tracer model restart (true or false) 16 # nrsttr control of the time step (0, 1 or 2) 17 18 ##--Variables used by PISCES -- 19 26 20 PAT_TOP_LRSTTR=$( supergrep ln_rsttr ${SUBMIT_DIR}/PARAM/namelist_top ) 27 21 PAT_TOP_NRSTTR=$( supergrep nrsttr ${SUBMIT_DIR}/PARAM/namelist_top ) 28 PAT_TOP_NWRITETRD=$( supergrep ntrd_trc ${SUBMIT_DIR}/PARAM/namelist_top ) 29 PAT_TOP_RSTRTTRD=$( supergrep ln_trdmld_trc_restart ${SUBMIT_DIR}/PARAM/namelist_top ) 30 31 PAT_PIS_NWRITEDIA=$( supergrep nwritedia ${SUBMIT_DIR}/PARAM/namelist_pisces ) 22 PAT_PIS_LRIVER=$( supergrep ln_river ${SUBMIT_DIR}/PARAM/namelist_pisces ) 32 23 33 24 IGCM_debug_PopStack "MBG_Initialize" … … 39 30 IGCM_debug_PushStack "MBG_Update" 40 31 41 ##--Write Frequency Purpose .... 42 topfrequency=$( echo ${config_MBG_WriteFrequency} | awk "-F " '{print $1}' ) 43 topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 44 case ${topfrequency} in 45 1Y|1y) 46 (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInYear ${year} ) )) ; 47 PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}y ; 48 R_OUT_MBG_NWRITE=${R_OUT_MBG_O_Y} ; 49 WFT1=${topfactor}Y ;; 50 1M|1m) 51 (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 52 PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}m ; 53 R_OUT_MBG_NWRITE=${R_OUT_MBG_O_M} ; 54 WFT1=${topfactor}M ;; 55 *D|*d) 56 (( TOP_NWRITE = OPA_NDT_DAY * topfactor )) ; 57 PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}d ; 58 R_OUT_MBG_NWRITE=${R_OUT_MBG_O_D} ; 59 WFT1=${topfactor}D ;; 60 *) 61 esac 32 33 ##--Write Frequency Purpose 34 Nbfreq=$( echo ${config_MBG_WriteFrequency} | wc -w ) 35 typeset -Z1 i=1 36 while [ $i -le ${Nbfreq} ]; do 37 topfrequency=$( echo ${config_MBG_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 38 topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 39 case ${topfrequency} in 40 *Y|*y) 41 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}y_${DatesPeriod} ; 42 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_Y} ; 43 eval WFT${i}=${topfactor}Y ;; 44 *M|*m) 45 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}m_${DatesPeriod} ; 46 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_M} ; 47 eval WFT${i}=${topfactor}M ;; 48 *D|*d) 49 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}d_${DatesPeriod} ; 50 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_D} ; 51 eval WFT${i}=${topfactor}D ;; 52 *) 53 esac 54 let i=$i+1 55 done 62 56 63 57 ##-- Restart configuration … … 68 62 TOP_NRSTTR=0 69 63 64 PISCES_LRIVER=.FALSE. 65 70 66 elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "y" ] ) ; then 71 67 … … 74 70 TOP_NRSTTR=0 75 71 72 PISCES_LRIVER=.TRUE. 73 76 74 else 77 75 … … 79 77 TOP_LRSTTR=.TRUE. 80 78 TOP_NRSTTR=2 79 80 PISCES_LRIVER=.TRUE. 81 81 82 fi 82 83 83 sed -e "s%${PAT_TOP_NWRITETRC}% nwritetrc=${TOP_NWRITE}%" \ 84 -e "s%${PAT_TOP_NWRITETRD}% ntrd_trc=${TOP_NWRITE}%" \ 85 84 # on force les sorties PISCES comme les sorties OPA 85 86 sed -e "s%${PAT_TOP_LRSTTR}% ln_rsttr=${TOP_LRSTTR}%" \ 86 87 -e "s%${PAT_TOP_NRSTTR}% nrsttr=${TOP_NRSTTR}%" \ 87 88 namelist_top > namelist_top.tmp … … 89 90 IGCM_sys_Mv namelist_top.tmp namelist_top 90 91 91 # on force les sorties PISCES comme les sorties OPA 92 93 sed -e "s%${PAT_PIS_NWRITEDIA}% nwritedia=${TOP_NWRITE}%" \ 92 sed -e "s%${PAT_PIS_LRIVER}% ln_river=${PISCES_LRIVER}%" \ 94 93 namelist_pisces > namelist_pisces.tmp 95 94 96 95 IGCM_sys_Mv namelist_pisces.tmp namelist_pisces 97 96 98 echo 'Variables automatically updated in namelists'99 grep AUTO namelist*100 97 101 98 IGCM_debug_PopStack "MBG_Update"
Note: See TracChangeset
for help on using the changeset viewer.