Skip to content

Fixes an uninitialized logical in FMS_cap#50

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
adcroft:fix-uninitialized-spear-flag
Dec 26, 2021
Merged

Fixes an uninitialized logical in FMS_cap#50
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
adcroft:fix-uninitialized-spear-flag

Conversation

@adcroft
Copy link
Copy Markdown
Member

@adcroft adcroft commented Dec 22, 2021

  • A do_not_log depends on a logical that is only set conditionally. This initializes that logical when the corresponding parameter is not being read.
  • Unfortunately, this change MOM_parameter_doc.all for the coupled models. The .all pipeline uses the gnu compiler which was initializing this logical as .true. and thus logging the new parameter when it should not have been. Intel and PGI were initializing with .false.

- A do_not_log depends on a logical that is only set
  conditionally. This initializes that logical when
  the corresponding parameter is not being read.
- Unfortunately, this change MOM_parameter_doc.all for
  the coupled models. The .all pipeline uses the gnu compiler
  which was initializing this logical as .true. and thus
  logging the new parameter when it should not have been. Intel
  and PGI were initializing with .false.
@adcroft adcroft added the bug Something isn't working label Dec 22, 2021
@adcroft adcroft requested a review from wfcooke December 22, 2021 20:53
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 22, 2021

Codecov Report

Merging #50 (f40aa09) into dev/gfdl (b628748) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl      #50   +/-   ##
=========================================
  Coverage     28.96%   28.96%           
=========================================
  Files           242      242           
  Lines         71324    71324           
=========================================
  Hits          20660    20660           
  Misses        50664    50664           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b628748...f40aa09. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/14425 ✔️

Reverts the parameter change due to the volatile logical initialization.

@marshallward marshallward merged commit 6bcea76 into NOAA-GFDL:dev/gfdl Dec 26, 2021
@adcroft adcroft deleted the fix-uninitialized-spear-flag branch May 31, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants