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/OPA_SRC/LDF/ldfdyn_c3d.h90 – 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/OPA_SRC/LDF/ldfdyn_c3d.h90

    r1581 r1694  
    350350      icof(:,:) = icof(:,:) * tmask(:,:,1) 
    351351      DO jj = 1, jpjm1 
    352          DO ji = 1, jpim1 
     352         DO ji = 1, jpim1   ! NO vector opt. 
    353353            zmsk = tmask(ji,jj+1,1) + tmask(ji+1,jj+1,1) + tmask(ji,jj,1) + tmask(ji,jj+1,1) 
    354354            IF( zmsk == 0. ) THEN 
Note: See TracChangeset for help on using the changeset viewer.