Changeset 1786 for branches/dev_005_AWL/NEMO/NST_SRC/agrif_user.F90
- Timestamp:
- 2009-12-02T09:50:10+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev_005_AWL/NEMO/NST_SRC/agrif_user.F90
r1605 r1786 88 88 REAL(wp) :: tabtrtemp(jpi,jpj,jpk,jptra) 89 89 #endif 90 #if defined key_agrif_nolim 91 REAL(wp) :: tabflxtemp(jpi,jpj) 92 #endif 90 93 LOGICAL check_namelist 91 94 !!---------------------------------------------------------------------- … … 135 138 #endif 136 139 140 #if defined key_lim2 && defined key_agrif_nolim 141 Call Agrif_Set_type(utau_nst,(/1,2/),(/2,3/)) 142 Call Agrif_Set_type(vtau_nst,(/2,1/),(/3,2/)) 143 Call Agrif_Set_type(taum_nst,(/2,2/),(/3,3/)) 144 Call Agrif_Set_type(qsr_nst,(/2,2/),(/3,3/)) 145 Call Agrif_Set_type(qns_nst,(/2,2/),(/3,3/)) 146 Call Agrif_Set_type(emp_nst,(/2,2/),(/3,3/)) 147 Call Agrif_Set_type(emps_nst,(/2,2/),(/3,3/)) 148 Call Agrif_Set_type(wndm_nst,(/2,2/),(/3,3/)) 149 Call Agrif_Set_type(fri_nst,(/2,2/),(/3,3/)) 150 Call Agrif_Set_type(tag_nst,(/2,2/),(/3,3/)) 151 #endif 152 137 153 ! 2. Space directions for each variables 138 154 !--------------------------------------- … … 164 180 #endif 165 181 182 #if defined key_lim2 && defined key_agrif_nolim 183 Call Agrif_Set_raf(utau_nst,(/'x','y'/)) 184 Call Agrif_Set_raf(vtau_nst,(/'x','y'/)) 185 Call Agrif_Set_raf(taum_nst,(/'x','y'/)) 186 Call Agrif_Set_raf(qsr_nst,(/'x','y'/)) 187 Call Agrif_Set_raf(qns_nst,(/'x','y'/)) 188 Call Agrif_Set_raf(emp_nst,(/'x','y'/)) 189 Call Agrif_Set_raf(emps_nst,(/'x','y'/)) 190 Call Agrif_Set_raf(wndm_nst,(/'x','y'/)) 191 Call Agrif_Set_raf(fri_nst,(/'x','y'/)) 192 Call Agrif_Set_raf(tag_nst,(/'x','y'/)) 193 #endif 194 166 195 ! 3. Type of interpolation 167 196 !------------------------- … … 186 215 #endif 187 216 217 #if defined key_lim2 && defined key_agrif_nolim 218 Call Agrif_Set_interp(utau_nst,interp1=Agrif_linear,interp2=AGRIF_ppm) 219 Call Agrif_Set_interp(vtau_nst,interp1=AGRIF_ppm,interp2=Agrif_linear) 220 Call Agrif_Set_interp(taum_nst,interp=AGRIF_linear) 221 Call Agrif_Set_interp(qsr_nst,interp=AGRIF_linear) 222 Call Agrif_Set_interp(qns_nst,interp=AGRIF_linear) 223 Call Agrif_Set_interp(emp_nst,interp=AGRIF_linear) 224 Call Agrif_Set_interp(emps_nst,interp=AGRIF_linear) 225 Call Agrif_Set_interp(wndm_nst,interp=AGRIF_linear) 226 Call Agrif_Set_interp(fri_nst,interp=AGRIF_linear) 227 Call Agrif_Set_interp(tag_nst,interp=AGRIF_linear) 228 229 Call Agrif_Set_bcinterp(utau_nst,interp1=Agrif_linear,interp2=AGRIF_ppm) 230 Call Agrif_Set_bcinterp(vtau_nst,interp1=AGRIF_ppm,interp2=Agrif_linear) 231 Call Agrif_Set_bcinterp(taum_nst,interp=AGRIF_linear) 232 Call Agrif_Set_bcinterp(qsr_nst,interp=AGRIF_linear) 233 Call Agrif_Set_bcinterp(qns_nst,interp=AGRIF_linear) 234 Call Agrif_Set_bcinterp(emp_nst,interp=AGRIF_linear) 235 Call Agrif_Set_bcinterp(emps_nst,interp=AGRIF_linear) 236 Call Agrif_Set_bcinterp(wndm_nst,interp=AGRIF_linear) 237 Call Agrif_Set_bcinterp(fri_nst,interp=AGRIF_linear) 238 Call Agrif_Set_bcinterp(tag_nst,interp=AGRIF_linear) 239 #endif 240 188 241 ! 4. Location of interpolation 189 242 !----------------------------- … … 208 261 #endif 209 262 263 #if defined key_lim2 && defined key_agrif_nolim 264 Call Agrif_Set_bc(utau_nst,(/0,1/)) 265 Call Agrif_Set_bc(vtau_nst,(/0,1/)) 266 Call Agrif_Set_bc(taum_nst,(/0,1/)) 267 Call Agrif_Set_bc(qsr_nst,(/0,1/)) 268 Call Agrif_Set_bc(qns_nst,(/0,1/)) 269 Call Agrif_Set_bc(emp_nst,(/0,1/)) 270 Call Agrif_Set_bc(emps_nst,(/0,1/)) 271 Call Agrif_Set_bc(wndm_nst,(/0,1/)) 272 Call Agrif_Set_bc(fri_nst,(/0,1/)) 273 Call Agrif_Set_bc(tag_nst,(/0,1/)) 274 #endif 275 210 276 ! 5. Update type 211 277 !--------------- … … 229 295 Call Agrif_Set_Updatetype(e1u,update1 = Agrif_Update_Copy, update2=Agrif_Update_Average) 230 296 Call Agrif_Set_Updatetype(e2v,update1 = Agrif_Update_Average, update2=Agrif_Update_Copy) 297 298 #if defined key_lim2 && defined key_agrif_nolim 299 Call Agrif_Set_Updatetype(utau_nst,update1 = Agrif_Update_Copy, update2 = Agrif_Update_Average) 300 Call Agrif_Set_Updatetype(vtau_nst,update1 = Agrif_Update_Average, update2 = Agrif_Update_Copy) 301 Call Agrif_Set_Updatetype(taum_nst , update = AGRIF_Update_Average) 302 Call Agrif_Set_Updatetype(qsr_nst , update = AGRIF_Update_Average) 303 Call Agrif_Set_Updatetype(qns_nst , update = AGRIF_Update_Average) 304 Call Agrif_Set_Updatetype(emp_nst , update = AGRIF_Update_Average) 305 Call Agrif_Set_Updatetype(emps_nst, update = AGRIF_Update_Average) 306 Call Agrif_Set_Updatetype(wndm_nst, update = AGRIF_Update_Average) 307 Call Agrif_Set_Updatetype(fri_nst, update = AGRIF_Update_Average) 308 Call Agrif_Set_Updatetype(tag_nst , update = AGRIF_Update_Average) 309 #endif 231 310 232 311 ! 6. First interpolations of potentially non zero fields … … 248 327 Call Agrif_Bc_variable(tabtrtemp,trn,calledweight=1.) 249 328 Call Agrif_Bc_variable(tabtrtemp,tra,calledweight=1.,procname=interptrn) 329 #endif 330 331 #if defined key_lim2 && defined key_agrif_nolim 332 333 ! Call Agrif_Interp_variable(tabflxtemp,utau_nst,procname=interputau) 334 ! Call Agrif_Interp_variable(tabflxtemp,vtau_nst,procname=interpvtau) 335 Call Agrif_Interp_variable(tabflxtemp,utau_nst) 336 Call Agrif_Interp_variable(tabflxtemp,vtau_nst) 337 Call Agrif_Interp_variable(tabflxtemp,taum_nst) 338 Call Agrif_Interp_variable(tabflxtemp,qsr_nst) 339 Call Agrif_Interp_variable(tabflxtemp,qns_nst) 340 Call Agrif_Interp_variable(tabflxtemp,emp_nst) 341 Call Agrif_Interp_variable(tabflxtemp,emps_nst) 342 Call Agrif_Interp_variable(tabflxtemp,wndm_nst) 343 Call Agrif_Interp_variable(tabflxtemp,fri_nst) 344 Call Agrif_Interp_variable(tabflxtemp,tag_nst) 345 ! Call Agrif_Bc_variable(tabflxtemp,utau_nst,calledweight=1.,procname=interputau) 346 ! Call Agrif_Bc_variable(tabflxtemp,vtau_nst,calledweight=1.,procname=interpvtau) 347 Call Agrif_Bc_variable(tabflxtemp,utau_nst,calledweight=1.) 348 Call Agrif_Bc_variable(tabflxtemp,vtau_nst,calledweight=1.) 349 Call Agrif_Bc_variable(tabflxtemp,taum_nst,calledweight=1.) 350 Call Agrif_Bc_variable(tabflxtemp,qsr_nst,calledweight=1.) 351 Call Agrif_Bc_variable(tabflxtemp,qns_nst,calledweight=1.) 352 Call Agrif_Bc_variable(tabflxtemp,emp_nst,calledweight=1.) 353 Call Agrif_Bc_variable(tabflxtemp,emps_nst,calledweight=1.) 354 Call Agrif_Bc_variable(tabflxtemp,wndm_nst,calledweight=1.) 355 Call Agrif_Bc_variable(tabflxtemp,fri_nst,calledweight=1.) 356 Call Agrif_Bc_variable(tabflxtemp,tag_nst,calledweight=1.) 250 357 #endif 251 358 Agrif_UseSpecialValue = .FALSE.
Note: See TracChangeset
for help on using the changeset viewer.