Changeset 197


Ignore:
Timestamp:
06/21/18 18:36:23 (6 years ago)
Author:
aquiquet
Message:

Bug correction in bmelt_clio_coupl for iloveclim branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/iLoveclim/SOURCES/bmelt_clio_coupl_mod.f90

    r101 r197  
    5050     write(42,*)'fusion basale sous les ice shelves : bmelt from CLIO   ' 
    5151     write(42,*)'-------------------------------------------------------' 
    52  
    5352 
    5453!the depths of the centers of CLIO vertical layers: 
     
    110109              bmgrz(i,j) = bmshelf(i,j) * bmgrz_fact 
    111110           endif 
    112  
    113111! Now, we look at the depth of the ice shelves to use the right bm 
    114112           !if (flot(i,j).and.(H(i,j).gt.1.)) then 
     
    120118              do noc=20,2,-1 
    121119                 if ( locdepth .gt. z_CLIO(noc)+dz_CLIO(noc)/2. ) then 
    122                     if (bmshelfCLIO(i,j,noc+1).lt.99d0) then 
    123                        bmelt(i,j) = real(bmshelfCLIO(i,j,noc+1)) 
     120                    if (bmshelfCLIO(i,j,noc-1).lt.99d0) then 
     121                       bmelt(i,j) = real(bmshelfCLIO(i,j,noc-1)) 
    124122                    endif 
    125123                 else 
     
    172170         do noc=20,2,-1 
    173171            if ( locdepth.gt. z_CLIO(noc)+dz_CLIO(noc)/2. ) then 
    174                if (bmshelfCLIO(i,j,noc+1).lt.99d0) then 
    175                   bmelt(i,j) = real(bmshelfCLIO(i,j,noc+1)) 
     172               if (bmshelfCLIO(i,j,noc-1).lt.99d0) then 
     173                  bmelt(i,j) = real(bmshelfCLIO(i,j,noc-1)) 
    176174               endif 
    177175            else 
Note: See TracChangeset for help on using the changeset viewer.