Changeset 176 for trunk/SOURCES/furst_schoof_mod.f90
- Timestamp:
- 01/30/18 11:28:30 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.