Opened 3 months ago

Closed 3 months ago

#2520 closed Bug (fixed)

Invalid Memory Access in tra_adv_cen

Reported by: francesca Owned by: systeam
Priority: low Milestone: Unscheduled
Component: TRA Version: release-4.0
Severity: major Keywords: bad memory access, TRA
Cc:

Description

Context

There is a memory access error in traadv_cen.F90 file (line 129) of the r4.0-HEAD NEMO version.
It happens since the ji index of DO loop starts from 1 and the value of ztu at the line 133 is read at the position ji-1.
I think that ji should start from 2..

Moreover, probably a communication on zwx and zwy should be added after the loop.

Analysis


Fix


Commit History (2)

ChangesetAuthorTimeChangeLog
13457francesca2020-09-10T17:48:13+02:00

fix ticket #2520 in trunk

13456francesca2020-09-10T17:42:42+02:00

fix ticket #2520 in r4.0-HEAD

Change History (4)

comment:1 Changed 3 months ago by clem

I concur. I think you can proceed to the fix in 4.0-HEAD and in the trunk…

comment:2 Changed 3 months ago by francesca

In 13456:

fix ticket #2520 in r4.0-HEAD

comment:3 Changed 3 months ago by francesca

In 13457:

fix ticket #2520 in trunk

comment:4 Changed 3 months ago by francesca

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.