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.
#2533 (avt_evd is undefined when enhanced vertical diffusion is not used) – NEMO

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#2533 closed Bug (fixed)

avt_evd is undefined when enhanced vertical diffusion is not used

Reported by: hadcv Owned by: hadcv
Priority: low Milestone: Unscheduled
Component: TRD Version: trunk
Severity: minor Keywords: trd_tra
Cc:

Description

avt_evd is undefined when ln_zdfevd == .FALSE., causing uninitialised values to be output by the "ttrd_evd" diagnostic.

Fix

Initialise avt_evd in trdtrd.F90:

IF( .NOT. ALLOCATED( trdtx ) ) THEN      ! allocate trdtra arrays
   IF( trd_tra_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'trd_tra : unable to allocate arrays' )
+  avt_evd(:,:,:) = 0._wp
ENDIF

Commit History (2)

ChangesetAuthorTimeChangeLog
14175hadcv2020-12-15T19:25:24+01:00

#2533: Fix uninitialised values in ttrd_evd diagnostic when ln_zdfevd = .false.

14174hadcv2020-12-15T19:25:18+01:00

#2533: Fix uninitialised values in ttrd_evd diagnostic when ln_zdfevd = .false.

Change History (3)

comment:1 Changed 3 years ago by hadcv

In 14174:

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

comment:2 Changed 3 years ago by hadcv

In 14175:

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

comment:3 Changed 3 years ago by hadcv

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

Fix committed

Version 0, edited 3 years ago by hadcv (next)
Note: See TracTickets for help on using tickets.