New URL for NEMO forge!

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.
#2752 (Undefined variable in timing.F90) – NEMO

Opened 2 years ago

Last modified 2 years ago

#2752 assigned Bug

Undefined variable in timing.F90

Reported by: emmafiedler Owned by: systeam
Priority: low Milestone:
Component: MULTIPLE Version: v4.0.*
Severity: minor Keywords:
Cc: emmafiedler, davestorkey



zperc is undefined in src/OCE/timing.F90 when ztot == 0


This is unlikely to be of particular importance but causes a compiler error when using debugging flags.


Initialise zperc to 0 to avoid this issue

Commit History (1)


Bug fix: initialise zperc to avoid being uninitialised when ztot==0, ticket #2752

Change History (5)

comment:1 Changed 2 years ago by emmafiedler

  • Cc davestorkey added

Initialised zperc to 0, see change in branch here:

Dave, please could you review and let me know if it's ok to commit?


comment:2 Changed 2 years ago by emmafiedler

I should add I've tested with this change and it fixes the compiler error, and the code runs without issue.

comment:3 Changed 2 years ago by davestorkey

Looks OK to me.

comment:4 Changed 2 years ago by emmafiedler

In 15599:

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

This is in r4.0-HEAD

Last edited 2 years ago by emmafiedler (previous) (diff)

comment:5 Changed 2 years ago by nemo

  • Owner set to systeam
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.