New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4704 for branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/NEMO/OPA_SRC/DYN/dynzdf_imp.F90 – NEMO

Ignore:
Timestamp:
2014-07-03T18:47:30+02:00 (10 years ago)
Author:
mathiot
Message:

Ice Shelf: correction of minor bugs if running without ice shelf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO2_ice_shelves/NEMOGCM/NEMO/OPA_SRC/DYN/dynzdf_imp.F90

    r4666 r4704  
    114114               ikbu = miku(ji,jj)       ! ocean top level at u- and v-points  
    115115               ikbv = mikv(ji,jj)       ! (first wet ocean u- and v-points) 
    116                avmu(ji,jj,ikbu-1) = -tfrua(ji,jj) * fse3uw(ji,jj,ikbu+1) 
    117                avmv(ji,jj,ikbv-1) = -tfrva(ji,jj) * fse3vw(ji,jj,ikbv+1) 
     116               IF (ikbu .GE. 2) avmu(ji,jj,ikbu-1) = -tfrua(ji,jj) * fse3uw(ji,jj,ikbu-1) 
     117               IF (ikbv .GE. 2) avmv(ji,jj,ikbv-1) = -tfrva(ji,jj) * fse3vw(ji,jj,ikbv-1) 
    118118            END DO 
    119119         END DO 
     
    152152               ua(ji,jj,ikbu) = ua(ji,jj,ikbu) + p2dt * bfrua(ji,jj) * ua_b(ji,jj) / ze3ua 
    153153               va(ji,jj,ikbv) = va(ji,jj,ikbv) + p2dt * bfrva(ji,jj) * va_b(ji,jj) / ze3va 
    154                ikbu = miku(ji,jj)         ! ocean bottom level at u- and v-points  
    155                ikbv = mikv(ji,jj)         ! (deepest ocean u- and v-points) 
     154               ikbu = miku(ji,jj)         ! top ocean level at u- and v-points  
     155               ikbv = mikv(ji,jj)         ! (first wet ocean u- and v-points) 
    156156               ze3ua =  ( 1._wp - r_vvl ) * fse3u_n(ji,jj,ikbu) + r_vvl   * fse3u_a(ji,jj,ikbu) 
    157157               ze3va =  ( 1._wp - r_vvl ) * fse3v_n(ji,jj,ikbv) + r_vvl   * fse3v_a(ji,jj,ikbv) 
Note: See TracChangeset for help on using the changeset viewer.