Changeset 175 for trunk


Ignore:
Timestamp:
01/17/18 17:58:22 (6 years ago)
Author:
dumas
Message:

fixed a bug on xpos and ypos test in furst_shoof module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/furst_schoof_mod.f90

    r110 r175  
    102102              xpos_tab(i,j)=xpos 
    103103              Hglx_tab(i,j)=Hgl 
    104  
     104               
    105105              if (gr_select.eq.1) then ! flux de Tsai 
    106106                 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),back_force_x(i-1,j),phi_prescr) 
     
    190190              xpos_tab(i,j)=xpos 
    191191              Hglx_tab(i,j)=Hgl 
     192               
    192193              if (gr_select.eq.1) then ! flux de Tsai 
    193194                 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),back_force_x(i+1,j),phi_prescr) 
    194195              else if (gr_select.eq.2) then ! flux de Schoof 
    195196                 ! afq: the dragging coef. is on the staggered grid, the GL can be either West or East to this point. 
    196                  if (xpos .lt. -dx/2.) then 
     197                 if (xpos .lt. dx/2.) then 
    197198                    frot_coef = betamx(i,j) 
    198199                 else 
     
    205206              endif 
    206207              phi_prescr_tabx(i,j)=phi_prescr 
    207               if (xpos .lt. -dx/2.) then  !  GL a west du i staggered,                          o centre, x stag 
     208              if (xpos .lt. dx/2.) then  !  GL a west du i staggered,                          o centre, x stag 
    208209 
    209210                 !  grille    ! .....x......o......x......o......x......O..G...x......o......x......o 
     
    274275              ypos_tab(i,j)=ypos 
    275276              Hgly_tab(i,j)=Hgl 
     277               
    276278              if (gr_select.eq.1) then ! flux de Tsai 
    277279                 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),back_force_y(i,j-1),phi_prescr) 
     
    355357              ypos_tab(i,j)=ypos 
    356358              Hgly_tab(i,j)=Hgl 
     359               
    357360              if (gr_select.eq.1) then ! flux de Tsai 
    358361                 call flux_Tsai4Schoof (Hgl,Abar(i,j),frot_coef,alpha_flot,glen(1),back_force_y(i,j+1),phi_prescr) 
    359362              else if (gr_select.eq.2) then ! flux de Schoof 
    360363                 ! afq: the dragging coef. is on the staggered grid, the GL can be either South or North to this point. 
    361                  if (ypos .lt. -dy/2.) then 
     364                 if (ypos .lt. dy/2.) then 
    362365                    frot_coef = betamy(i,j) 
    363366                 else 
     
    370373              endif 
    371374              phi_prescr_taby(i,j)=phi_prescr 
    372               if (ypos .lt. -dy/2.) then  !  GL au sud du j staggered,                          o centre, x stag 
     375              if (ypos .lt. dy/2.) then  !  GL au sud du j staggered,                          o centre, x stag 
    373376 
    374377                 !  grille    ! .....x......o......x......o......x......O..G...x......o......x......o 
Note: See TracChangeset for help on using the changeset viewer.