Changeset 176
- Timestamp:
- 01/30/18 11:28:30 (6 years ago)
- Location:
- trunk/SOURCES
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SOURCES/New-remplimat/diagno-L2_mod.f90
r143 r176 16 16 real, dimension(nx,ny) :: uyb1ramollo 17 17 real, dimension(nx,ny) :: pvi_keep 18 19 18 20 19 !cdc transfere dans module3d pour compatibilite avec furst_schoof_mod … … 86 85 end if 87 86 88 89 87 return 90 88 end subroutine init_diagno … … 142 140 143 141 !if (Schoof.eq.1.and.nt.GT.15000) then ! flux grounding line Schoof 144 if (Schoof.eq.1) then ! flux grounding line Schoof145 call interpol_glflux ! calcul flux GL + interpolation sur voisins146 endif142 ! afq -- below: if (Schoof.eq.1) then ! flux grounding line Schoof 143 ! afq -- below: call interpol_glflux ! calcul flux GL + interpolation sur voisins 144 ! afq -- below: endif 147 145 148 146 !~ do j=1,ny … … 190 188 pvi_keep(:,:)=pvi(:,:) 191 189 where (flot(:,:).and.H(:,:).GT.2.) 192 pvi(:,:)=1.e5193 !pvi(:,:)=pvimin190 ! pvi(:,:)=1.e5 191 pvi(:,:)=pvimin 194 192 endwhere 195 193 … … 210 208 back_force_y(:,:)=1. 211 209 endwhere 210 back_force_x(:,:) = min ( back_force_x(:,:), 1. ) 211 back_force_y(:,:) = min ( back_force_y(:,:), 1. ) 212 debug_3D(:,:,64) = back_force_x(:,:) 213 debug_3D(:,:,65) = back_force_y(:,:) 212 214 213 215 if (ifail_diagno_ramollo.gt.0) then … … 228 230 229 231 !~ print*,'apres calcul rempli_L2' 230 !~ read(*,*) 232 !~ read(*,*) 233 234 call interpol_glflux ! calcul flux GL + interpolation sur voisins 235 236 call rempli_L2(nxd1,nxd2,nyd1,nyd2,uxbar(nxd1:nxd2,nyd1:nyd2),uybar(nxd1:nxd2,nyd1:nyd2), & 237 uxb1(nxd1:nxd2,nyd1:nyd2),uyb1(nxd1:nxd2,nyd1:nyd2), & 238 imx_diag(nxd1:nxd2,nyd1:nyd2),imy_diag(nxd1:nxd2,nyd1:nyd2),ifail_diagno) 239 231 240 endif 232 241 … … 416 425 endif 417 426 pvi(i,j)=pvi(i,j)+visc(i,j,k) 418 Abar(i,j) =(Bt2/2.)**(-1./3.) + Abar(i,j) 419 427 Abar(i,j) =(Bt2/2.)**(-1./3.) + Abar(i,j) 428 420 429 Taushelf(i,j)=Taushelf(i,j)+ttau 421 430 … … 427 436 pvi(i,j) = pvi(i,j)*H(i,j)/nz 428 437 Abar(i,j) = (Abar(i,j) /nz)**(-3.) 429 438 430 439 431 440 Taushelf(i,j)=Taushelf(i,j)/nz -
trunk/SOURCES/furst_schoof_mod.f90
r175 r176 57 57 real :: toutpetit = 1e-6 58 58 real :: denom, prodscal 59 60 real :: bfx, bfy 59 61 60 62 !debug … … 103 105 Hglx_tab(i,j)=Hgl 104 106 107 ! afq: the back force is on the staggered grid, the GL can be either West or East to this point. 108 if (xpos .lt. -dx/2.) then 109 bfx = back_force_x(i,j) 110 else 111 bfx = back_force_x(i+1,j) 112 endif 105 113 if (gr_select.eq.1) then ! flux de Tsai 106 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),b ack_force_x(i-1,j),phi_prescr)114 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),bfx,phi_prescr) 107 115 else if (gr_select.eq.2) then ! flux de Schoof 108 116 ! afq: the dragging coef. is on the staggered grid, the GL can be either West or East to this point. … … 112 120 frot_coef = betamx(i+1,j) 113 121 endif 114 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,b ack_force_x(i-1,j),phi_prescr)122 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,bfx,phi_prescr) 115 123 else 116 124 print*,'ATTENTION FLUX AUTRE QUE TSAI OU SCHOOF NON IMPLEMENTE' … … 191 199 Hglx_tab(i,j)=Hgl 192 200 201 ! afq: the back force is on the staggered grid, the GL can be either West or East to this point. 202 if (xpos .lt. dx/2.) then 203 bfx = back_force_x(i,j) 204 else 205 bfx = back_force_x(i+1,j) 206 endif 193 207 if (gr_select.eq.1) then ! flux de Tsai 194 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),b ack_force_x(i+1,j),phi_prescr)208 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),bfx,phi_prescr) 195 209 else if (gr_select.eq.2) then ! flux de Schoof 196 210 ! afq: the dragging coef. is on the staggered grid, the GL can be either West or East to this point. … … 200 214 frot_coef = betamx(i+1,j) 201 215 endif 202 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,b ack_force_x(i+1,j),phi_prescr)216 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,bfx,phi_prescr) 203 217 else 204 218 print*,'ATTENTION FLUX AUTRE QUE TSAI OU SCHOOF NON IMPLEMENTE' … … 276 290 Hgly_tab(i,j)=Hgl 277 291 292 ! afq: the back force is on the staggered grid, the GL can be either South or North to this point. 293 if (ypos .lt. -dy/2.) then 294 bfy = back_force_y(i,j) 295 else 296 bfy = back_force_y(i,j+1) 297 endif 278 298 if (gr_select.eq.1) then ! flux de Tsai 279 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),b ack_force_y(i,j-1),phi_prescr)299 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),bfy,phi_prescr) 280 300 else if (gr_select.eq.2) then ! flux de Schoof 281 301 ! afq: the dragging coef. is on the staggered grid, the GL can be either South or North to this point. … … 285 305 frot_coef = betamy(i,j+1) 286 306 endif 287 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,b ack_force_y(i,j-1),phi_prescr)307 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,bfy,phi_prescr) 288 308 else 289 309 print*,'ATTENTION FLUX AUTRE QUE TSAI OU SCHOOF NON IMPLEMENTE' … … 358 378 Hgly_tab(i,j)=Hgl 359 379 380 ! afq: the back force is on the staggered grid, the GL can be either South or North to this point. 381 if (ypos .lt. dy/2.) then 382 bfy = back_force_y(i,j) 383 else 384 bfy = back_force_y(i,j+1) 385 endif 360 386 if (gr_select.eq.1) then ! flux de Tsai 361 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),b ack_force_y(i,j+1),phi_prescr)387 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),bfy,phi_prescr) 362 388 else if (gr_select.eq.2) then ! flux de Schoof 363 389 ! afq: the dragging coef. is on the staggered grid, the GL can be either South or North to this point. … … 367 393 frot_coef = betamy(i,j+1) 368 394 endif 369 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,b ack_force_y(i,j+1),phi_prescr)395 call flux_Schoof4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),m_weert,bfy,phi_prescr) 370 396 else 371 397 print*,'ATTENTION FLUX AUTRE QUE TSAI OU SCHOOF NON IMPLEMENTE' … … 474 500 !!$ enddo 475 501 !!$ enddo 502 503 debug_3D(:,:,66) = phi_prescr_tabx(:,:) 504 debug_3D(:,:,67) = phi_prescr_taby(:,:) 505 476 506 end subroutine interpol_glflux 477 507
Note: See TracChangeset
for help on using the changeset viewer.