Changeset 1764 for trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP
- Timestamp:
- 2009-11-25T17:05:52+01:00 (14 years ago)
- Location:
- trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP/pisces.card
r1661 r1764 8 8 #-- available directories are: v3, cpl 9 9 #-- NOTE: if you use your own directory you have to comment it 10 OPA_dyn= cpl10 OPA_dyn=v3 11 11 #============================================================== 12 12 … … 16 16 [BoundaryFiles] 17 17 List= () 18 ListNonDel= (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/ VA66_mesh_mask.nc, mesh_mask.nc), \19 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/ VA66_SE_2050_2059_1M_grid_T.nc,dyna_grid_T.nc), \20 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/ VA66_SE_2050_2059_1M_grid_U.nc,dyna_grid_U.nc), \21 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/ VA66_SE_2050_2059_1M_grid_V.nc,dyna_grid_V.nc), \22 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/ VA66_SE_2050_2059_1M_grid_W.nc,dyna_grid_W.nc), \18 ListNonDel= (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_mesh_mask.nc, mesh_mask.nc), \ 19 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_T.nc, .), \ 20 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_U.nc, .), \ 21 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_V.nc, .), \ 22 (${R_BC}/${config_UserChoices_TagName}/DYN/${pisces_UserChoices_OPA_dyn}/NEMOV3_5d_20910101_20911231_grid_W.nc, .), \ 23 23 (${R_BC}/${config_UserChoices_TagName}/INI/data_1m_DIC_nomask.nc, .), \ 24 24 (${R_BC}/${config_UserChoices_TagName}/INI/data_1m_Alkalini_nomask.nc, .), \ … … 33 33 (${R_BC}/${config_UserChoices_TagName}/ANC/bathy.orca.nc, .), \ 34 34 (${R_BC}/${config_UserChoices_TagName}/ANC/river.orca.nc, .), \ 35 (${R_BC}/${config_UserChoices_TagName}/ANC/ndeposition.orca.nc, .) , \35 (${R_BC}/${config_UserChoices_TagName}/ANC/ndeposition.orca.nc, .) 36 36 37 37 [ParametersFiles] 38 38 List= (${SUBMIT_DIR}/PARAM/namelist, .), \ 39 39 (${SUBMIT_DIR}/PARAM/namelist_top, .), \ 40 (${SUBMIT_DIR}/PARAM/namelist_pisces, .) 40 (${SUBMIT_DIR}/PARAM/namelist_pisces, .), \ 41 (${SUBMIT_DIR}/PARAM/iodef.xml, .), \ 42 (${SUBMIT_DIR}/PARAM/xmlio_server.def, .) 41 43 42 44 [RestartFiles] … … 47 49 48 50 [OutputFiles] 49 List= (${PREFIX_NWRITETRC}_${DATE_OPA}_ptrc_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_ptrc_T.nc, NONE), \ 50 (${PREFIX_NWRITETRC}_${DATE_OPA}_diad_T.nc, ${R_OUT_MBG_NWRITE}/${PREFIX}_${WFT1}_diad_T.nc, NONE) 51 List= (${PREFIX_WFT1}_ptrc_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_ptrc_T.nc, NONE), \ 52 (${PREFIX_WFT1}_diad_T.nc, ${R_OUT_MBG_WFT1}/${PREFIX}_${WFT1}_diad_T.nc, NONE), \ 53 (${PREFIX_WFT2}_ptrc_T.nc, ${R_OUT_MBG_WFT2}/${PREFIX}_${WFT2}_ptrc_T.nc, Post_1M_ptrc_T), \ 54 (${PREFIX_WFT3}_diad_T.nc, ${R_OUT_MBG_WFT3}/${PREFIX}_${WFT3}_diad_T.nc, Post_5D_diad_T) 51 55 56 [Post_1M_ptrc_T] 57 Patches= () 58 GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter) 59 TimeSeriesVars = (DCHL, NCHL, NO3) 60 61 [Post_5D_diad_T] 62 Patches = () 63 GatherWithInternal = (nav_lon, nav_lat, time_counter) 64 TimeSeriesVars = (Cflx) 65 -
trunk/CONFIG/ORCA2_OFF_PISCES/IGCM00/COMP/pisces.driver
r1661 r1764 7 7 8 8 JOB_NAME=${config_UserChoices_JobName} 9 10 9 OPA_NDT_DAY=${pisces_UserChoices_OPA_NDT_DAY:=4} 11 12 10 13 11 # Local function to find namelists parameters … … 45 43 ##--Variables used by MBG -- 46 44 47 # nwritetrc frequency of write in the tracer output file48 45 # lrsttr boolean term for tracer model restart (true or false) 49 46 # nrsttr control of the time step (0, 1 or 2) 50 # ntrd_trc time step frequency of write in the trends file for tracers51 # ln_trdmld_trc_restart boolean term for trc trends restart (true or false)52 47 53 48 ##--Variables used by PISCES -- 54 49 55 # nwritedia frequency of write in the additional diag output file56 57 PAT_TOP_NWRITETRC=$( supergrep nwritetrc ${SUBMIT_DIR}/PARAM/namelist_top )58 50 PAT_TOP_LRSTTR=$( supergrep ln_rsttr ${SUBMIT_DIR}/PARAM/namelist_top ) 59 51 PAT_TOP_NRSTTR=$( supergrep nrsttr ${SUBMIT_DIR}/PARAM/namelist_top ) 60 PAT_TOP_NWRITETRD=$( supergrep ntrd_trc ${SUBMIT_DIR}/PARAM/namelist_top ) 61 PAT_TOP_RSTRTTRD=$( supergrep ln_trdmld_trc_restart ${SUBMIT_DIR}/PARAM/namelist_top ) 52 PAT_PIS_LRIVER=$( supergrep ln_river ${SUBMIT_DIR}/PARAM/namelist_pisces ) 62 53 63 PAT_PIS_NWRITEDIA=$( supergrep nwritedia ${SUBMIT_DIR}/PARAM/namelist_pisces ) 64 PAT_PIS_LRIVER=$( supergrep ln_river ${SUBMIT_DIR}/PARAM/namelist_pisces ) 54 ##--Variables used for XMLIO_SERVER configuration file 55 56 # using_server: .TRUE.(.FALSE.) to use(bypass) the io_server 57 58 PAT_SERVER=$( supergrep using_server ${SUBMIT_DIR}/PARAM/xmlio_server.def ) 59 65 60 66 61 IGCM_debug_PopStack "MBG_Initialize" … … 118 113 IGCM_sys_Mv namelist.tmp namelist 119 114 120 echo 'Variables automatically updated in namelists' 121 grep AUTO namelist* 122 123 ##--Write Frequency Purpose .... 124 topfrequency=$( echo ${config_MBG_WriteFrequency} | awk "-F " '{print $1}' ) 125 topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 126 case ${topfrequency} in 127 1Y|1y) 128 (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInYear ${year} ) )) ; 129 PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}y ; 130 R_OUT_MBG_NWRITE=${R_OUT_MBG_O_Y} ; 131 WFT1=${topfactor}Y ;; 132 1M|1m) 133 (( TOP_NWRITE = OPA_NDT_DAY * topfactor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 134 PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}m ; 135 R_OUT_MBG_NWRITE=${R_OUT_MBG_O_M} ; 136 WFT1=${topfactor}M ;; 137 *D|*d) 138 (( TOP_NWRITE = OPA_NDT_DAY * topfactor )) ; 139 PREFIX_NWRITETRC=${config_UserChoices_JobName}_${topfactor}d ; 140 R_OUT_MBG_NWRITE=${R_OUT_MBG_O_D} ; 141 WFT1=${topfactor}D ;; 142 *) 143 esac 115 ##--Write Frequency Purpose 116 Nbfreq=$( echo ${config_MBG_WriteFrequency} | wc -w ) 117 typeset -Z1 i=1 118 while [ $i -le ${Nbfreq} ]; do 119 topfrequency=$( echo ${config_MBG_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 120 topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 121 case ${topfrequency} in 122 *Y|*y) 123 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}y_${DatesPeriod} ; 124 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_Y} ; 125 eval WFT${i}=${topfactor}Y ;; 126 *M|*m) 127 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}m_${DatesPeriod} ; 128 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_M} ; 129 eval WFT${i}=${topfactor}M ;; 130 *D|*d) 131 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}d_${DatesPeriod} ; 132 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_D} ; 133 eval WFT${i}=${topfactor}D ;; 134 *) 135 esac 136 let i=$i+1 137 done 144 138 145 139 ##-- Restart configuration … … 150 144 TOP_NRSTTR=0 151 145 152 if ( [ "${pisces_UserChoices_OPA_dyn}" = "cpl" ] ) ; then 153 PISCES_LRIVER=.FALSE. 154 else 155 PISCES_LRIVER=.TRUE. 156 fi 146 PISCES_LRIVER=.FALSE. 157 147 158 148 elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "y" ] ) ; then … … 162 152 TOP_NRSTTR=0 163 153 164 if ( [ "${pisces_UserChoices_OPA_dyn}" = "cpl" ] ) ; then 165 PISCES_LRIVER=.TRUE. 166 else 167 PISCES_LRIVER=.TRUE. 168 fi 169 154 PISCES_LRIVER=.TRUE. 170 155 171 156 else … … 175 160 TOP_NRSTTR=2 176 161 177 if ( [ "${pisces_UserChoices_OPA_dyn}" = "cpl" ] ) ; then 178 PISCES_LRIVER=.TRUE. 179 else 180 PISCES_LRIVER=.TRUE. 181 fi 162 PISCES_LRIVER=.TRUE. 182 163 183 164 fi 184 165 185 sed -e "s%${PAT_TOP_NWRITETRC}% nwritetrc=${TOP_NWRITE}%" \ 186 -e "s%${PAT_TOP_NWRITETRD}% ntrd_trc=${TOP_NWRITE}%" \ 187 166 # on force les sorties PISCES comme les sorties OPA 167 168 sed -e "s%${PAT_TOP_LRSTTR}% ln_rsttr=${TOP_LRSTTR}%" \ 188 169 -e "s%${PAT_TOP_NRSTTR}% nrsttr=${TOP_NRSTTR}%" \ 189 170 namelist_top > namelist_top.tmp … … 191 172 IGCM_sys_Mv namelist_top.tmp namelist_top 192 173 193 # on force les sorties PISCES comme les sorties OPA 194 195 sed -e "s%${PAT_PIS_NWRITEDIA}% nwritedia=${TOP_NWRITE}%" \ 196 -e "s%${PAT_PIS_LRIVER}% ln_river=${PISCES_LRIVER}%" \ 174 sed -e "s%${PAT_PIS_LRIVER}% ln_river=${PISCES_LRIVER}%" \ 197 175 namelist_pisces > namelist_pisces.tmp 198 176 199 177 IGCM_sys_Mv namelist_pisces.tmp namelist_pisces 200 178 201 echo 'Variables automatically updated in namelists'202 grep AUTO namelist*203 179 204 180 IGCM_debug_PopStack "MBG_Update" … … 210 186 IGCM_debug_PushStack "MBG_Finalize" 211 187 212 if [ -f date.file ] ; then213 # Prefix use in opa.card AND in lim2.card :214 DATE_OPA=$( cat date.file | \215 sed "s/\ ${config_UserChoices_JobName}_[0-9]*[a-z]_\([0-9]*_[0-9]*\)_\ */\1/g" )216 ###DATE_OPA=$( $DATE_OPABF | cut -c1-30 )217 MainPrefix=${config_UserChoices_JobName}_1d_${DATE_OPA}218 SecondPrefix=${config_UserChoices_JobName}_5d_${DATE_OPA}219 fi220 221 188 echo FINALIZE MBG !!! 222 189
Note: See TracChangeset
for help on using the changeset viewer.