Opened 3 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)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
15768 | smasson | 2022-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
comment:2 Changed 2 years ago by smasson
In 15768:
comment:3 Changed 2 years ago by smasson
- Resolution set to fixed
- Status changed from new to closed
done in [15768]