Opened 3 years ago
Last modified 3 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 |
Description
Context
zperc is undefined in src/OCE/timing.F90 when ztot == 0
Analysis
This is unlikely to be of particular importance but causes a compiler error when using debugging flags.
Fix
Initialise zperc to 0 to avoid this issue
Commit History (1)
Changeset | Author | Time | ChangeLog |
---|---|---|---|
15599 | emmafiedler | 2021-12-14T17:07:32+01:00 | Bug fix: initialise zperc to avoid being uninitialised when ztot==0, ticket #2752 |
Change History (5)
comment:1 Changed 3 years ago by emmafiedler
- Cc davestorkey added
comment:2 Changed 3 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 3 years ago by davestorkey
Looks OK to me.
comment:4 Changed 3 years ago by emmafiedler
comment:5 Changed 3 years ago by nemo
- Owner set to systeam
- Status changed from new to assigned
Note: See
TracTickets for help on using
tickets.
Initialised zperc to 0, see change in branch here:
http://forge.ipsl.jussieu.fr/nemo/changeset?sfp_email=&sfph_mail=&reponame=&new=15598%40NEMO%2Fbranches%2FUKMO%2Ftimings_bugfix&old=15596%40NEMO%2Freleases%2Fr4.0%2Fr4.0-HEAD
Dave, please could you review and let me know if it's ok to commit?
Thanks,
Emma