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.
#2758 (Incomplete initialisation in diahth.F90) – NEMO

Opened 2 years ago

Closed 2 years ago

#2758 closed Defect (fixed)

Incomplete initialisation in diahth.F90

Reported by: acc Owned by: systeam
Priority: low Milestone:
Component: DIA Version: v4.0.*
Severity: minor Keywords:
Cc:

Description

Context

Misleading output can be generated from dia_hth with some combinations of output diagnostics

Analysis

The code section which initialises the temporary arrays is contained within a:

       IF( iom_use( 'mlddzt' ) .OR. iom_use( 'mldr0_3' ) .OR. iom_use( 'mldr0_1' ) ) THEN

statement but it is possible to request other diagnostics whilst omitting any of these three. In this case the arrays are not initialised and results can contain random values.
See, for example:
https://nemo-ocean.discourse.group/t/4-0-x-bug-in-variable-output-mldr10-3/230

...

Recommendation

Extend the IF statement so that the initialisation is triggered if any of the involved variables are active.

Commit History (1)

ChangesetAuthorTimeChangeLog
15768smasson2022-03-30T09:04:47+02:00

fix Incomplete initialisation in diahth.F90, see #2758

Change History (3)

comment:1 Changed 2 years ago by smasson

done in [15768]

comment:2 Changed 2 years ago by smasson

In 15768:

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

comment:3 Changed 2 years ago by smasson

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