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 1694 for trunk/NEMO/LIM_SRC_2/limmsh_2.F90 – NEMO

Ignore:
Timestamp:
2009-10-30T17:06:23+01:00 (15 years ago)
Author:
smasson
Message:

avoid out of bounds access, see ticket:576

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_2/limmsh_2.F90

    r1156 r1694  
    157157 
    158158      DO jj = 2, jpj 
    159          DO ji = 2, jpi 
     159         DO ji = 2, jpi   ! NO vector opt. 
    160160            zh1p  =  e1t(ji  ,jj  ) * wght(ji,jj,2,2)   & 
    161161               &   + e1t(ji-1,jj  ) * wght(ji,jj,1,2)   & 
     
    234234      tmu(1,:) = 0.e0 
    235235      DO jj = 2, jpj               ! ice U.V-point: computed from ice T-point mask 
    236          DO ji = 2, jpim1 
     236         DO ji = 2, jpim1   ! NO vector opt. 
    237237            tmu(ji,jj) =  tms(ji,jj) * tms(ji-1,jj) * tms(ji,jj-1) * tms(ji-1,jj-1)             
    238238         END DO 
Note: See TracChangeset for help on using the changeset viewer.