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.
#2401 (access undefined values in a control print of cpl_oasis3) – NEMO

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2401 closed Bug (fixed)

access undefined values in a control print of cpl_oasis3

Reported by: smasson Owned by: systeam
Priority: low Milestone:
Component: SBC Version: trunk
Severity: minor Keywords:
Cc:

Description

Context

print in lines 446-448:

WRITE(numout,*) '     - Minimum value is ', MINVAL(pdata(:,:,jc))
WRITE(numout,*) '     - Maximum value is ', MAXVAL(pdata(:,:,jc))
WRITE(numout,*) '     -     Sum value is ',    SUM(pdata(:,:,jc))

access undefined values as pdata is defined only from nldi to nlei and from nldj to nlej

Analysis

this bug was partially fixed in [12132], when changing lines 365-367 but I forgot to look a little bit further down and to change also lines 446-448

Fix

trivial bugfix: replace pdata(:,:,jc) by pdata(nldi:nlei,nldj:nlej,jc)

Commit History (2)

ChangesetAuthorTimeChangeLog
12528smasson2020-03-09T18:10:39+01:00

release-4.0-HEAD: minor bugfix in cpl_oasis3, see #2401

12527smasson2020-03-09T18:06:41+01:00

trunk: minor bugfix in cpl_oasis3, see #2401

Change History (3)

comment:1 Changed 4 years ago by smasson

In 12527:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found

comment:2 Changed 4 years ago by smasson

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

fixed in [12527]

comment:3 Changed 4 years ago by smasson

In 12528:

Error: Failed to load processor CommitTicketReference
No macro or processor named 'CommitTicketReference' found
Version 1, edited 4 years ago by smasson (previous) (next) (diff)
Note: See TracTickets for help on using tickets.