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.
#1659 (Out of bounds array in trdmxl.F90) – NEMO

Opened 9 years ago

Closed 9 years ago

Last modified 3 years ago

#1659 closed Bug (fixed)

Out of bounds array in trdmxl.F90

Reported by: timgraham Owned by: nemo
Priority: low Milestone: 2015 release-3.6
Component: OCE Version: v3.6
Severity: Keywords: 2015 OPA v3.6
Cc:

Description

In trdmxl.F90 ztmltrd2 and zsmltrd2 are allocated as follows where jpltrd=11 (set in trdmxl_oce.F90).

CALL wrk_alloc( jpi, jpj, jpltrd, ztmltrd2, zsmltrd2                                                               )

Later in the same subroutine the array is used as:

ztmlatf2(:,:) = ztmltrd2(:,:,jpmxl_atf) - tmltrd_sum(:,:,jpmxl_atf) + tmltrd_atf_sumb(:,:)

but jpmxl_trd=12.

I think jpltrd should be 12.

Commit History (2)

ChangesetAuthorTimeChangeLog
6209timgraham2016-01-05T10:41:58+01:00

Fix for ticket #1659

6208timgraham2016-01-05T10:36:37+01:00

Fix for ticket #1659

Change History (5)

comment:1 Changed 9 years ago by timgraham

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

Fixed in nemo_v3_6_STABLE at r6208

Fixed in trunk at r6209

comment:2 Changed 9 years ago by nicolasmartin

  • Keywords 2015 nemo_v3_6* added

comment:3 Changed 7 years ago by nemo

  • Keywords release-3.6* added; nemo_v3_6* removed

comment:4 Changed 7 years ago by nemo

  • Keywords release-3.6* removed

comment:5 Changed 3 years ago by nemo

  • Keywords OPA v3.6 added
Note: See TracTickets for help on using tickets.