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.
#1525 (out of bounds in divcurl!!) – NEMO

Opened 9 years ago

Closed 8 years ago

Last modified 2 years ago

#1525 closed Bug (fixed)

out of bounds in divcurl!!

Reported by: smasson Owned by: flavoni
Priority: high Milestone: 2015 release-3.6
Component: OCE Version: trunk
Severity: Keywords: 2015 OPA v3.6
Cc:

Description

the definition of the work array zwv is wrong!
the keyword used should be kistart instead of kjstart.

      CALL wrk_alloc( jpi+4, jpj  , zwv, kistart = -1 )

Which means that the array bounds are (1:jpi+4, -1:jpj-2) instead of (-1:jpi+2, 1:jpj) .
I don't know why we never saw this bug which was introduced with the wrk_alloc during changeset:3294
Check bounds compilation option are not working in this case?

Am I wrong somewhere?

Commit History (1)

ChangesetAuthorTimeChangeLog
6068flavoni2015-12-16T16:26:00+01:00

fix out of bounds in divcur, see ticket #1525

Change History (6)

comment:1 Changed 8 years ago by flavoni

  • Owner changed from NEMO team to flavoni

comment:2 Changed 8 years ago by flavoni

  • Resolution set to fixed
  • Status changed from new to closed

Fix in commit revision 6068

comment:3 Changed 8 years ago by nicolasmartin

  • Keywords 2015 nemo_v3_6* added

comment:4 Changed 6 years ago by nemo

  • Keywords release-3.6* added; nemo_v3_6* removed

comment:5 Changed 6 years ago by nemo

  • Keywords release-3.6 added; release-3.6* removed

comment:6 Changed 2 years ago by nemo

  • Keywords OPA v3.6 added; release-3.6 removed
Note: See TracTickets for help on using tickets.