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/limdyn_2.F90 – NEMO

Ignore:
Timestamp:
2009-10-30T17:06:23+01:00 (14 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/limdyn_2.F90

    r1470 r1694  
    158158         ! frictional velocity at T-point 
    159159         DO jj = 2, jpjm1 
    160             DO ji = 2, jpim1   ! NO vector opt. 
     160            DO ji = 2, jpim1   ! NO vector opt. because of zu_io 
    161161               ust2s(ji,jj) = 0.5 * cw                                                          & 
    162162                  &         * (  zu_io(ji,jj) * zu_io(ji,jj) + zu_io(ji-1,jj) * zu_io(ji-1,jj)   & 
Note: See TracChangeset for help on using the changeset viewer.