Opened 5 years ago

Closed 5 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: release-3.6
Severity: Keywords: 2015


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)


Fix for ticket #1659


Fix for ticket #1659

Change History (4)

comment:1 Changed 5 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 4 years ago by nicolasmartin

  • Keywords 2015 nemo_v3_6* added

comment:3 Changed 3 years ago by nemo

  • Keywords release-3.6* added; nemo_v3_6* removed

comment:4 Changed 3 years ago by nemo

  • Keywords release-3.6* removed
Note: See TracTickets for help on using tickets.