Changeset 97 for trunk/SOURCES


Ignore:
Timestamp:
01/03/17 15:54:13 (8 years ago)
Author:
aquiquet
Message:

Small bug correction in Schoof grounding line flux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/furst_schoof_mod.f90

    r96 r97  
    8080  county(:,:)=0. 
    8181 
    82         archimtab(:,:) = Bsoc(:,:)+H(:,:)*ro/row -sealevel 
     82  archimtab(:,:) = Bsoc(:,:)+H(:,:)*alpha_flot -sealevel 
    8383 
    8484  ! detection des noeuds grounding line 
    8585  do j= 3,ny-3 
    8686     do i=3,nx-3 
    87         archim = Bsoc(i,j)+H(i,j)*ro/row -sealevel 
    88         if ((H(i,j).gt.0.).and.(archim.GE.0.).and.(Bsoc(i,j).LE.sealevel)) then    ! grounded and with ice 
     87        !archim = Bsoc(i,j)+H(i,j)*ro/row -sealevel 
     88        if ((H(i,j).gt.0.).and.(archimtab(i,j).GE.0.).and.(Bsoc(i,j).LE.sealevel)) then    ! grounded and with ice 
    8989           !           print*,'schoof gr line ij',i,j 
    9090           ! selon x (indice i) 
     
    160160              end if 
    161161                                          
    162                                         else if (archimtab(i+1,j).LT.0..and.Uxbar(i+1,j).GT.0.) then 
     162          else if (archimtab(i+1,j).LT.0..and.Uxbar(i+1,j).GT.0.) then 
    163163           !else if (flot(i+1,j).and.Uxbar(i+1,j).GT.0.) then    ! grounding line between i,i+1    CAS EST (ecoulement vers grille Est) 
    164164 
     
    252252                 uybartemp(i,j-1)   = uybartemp(i,j-1) + phi_ygl(i,j-1) / Hmyloc(i,j-1) ! attention division par 0 possible ? 
    253253                 county   (i,j-1)   = county(i,j-1)+1 
    254                  imy_diag (i-1,j) = 1 
     254                 imy_diag (i,j-1) = 1 
    255255 
    256256                 ! extrapolation pour avoir uybar(i,j) 
     
    437437                print*,'B_0, alpha, H_0, SL', B_0, alpha, H_0, SL 
    438438                print*,'archim=',B_1+H_1*alpha - SL 
    439                 stop 
    440         endif 
     439                !stop 
     440                xpos = min(max(0.,xpos),1.) 
     441  endif 
    441442         
    442443  xpos = xpos * dy 
Note: See TracChangeset for help on using the changeset viewer.