Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kh_max_x[xy], Ah_max_xy chksum and alloc fixes #1023

Merged
merged 4 commits into from
Nov 9, 2019

Conversation

marshallward
Copy link
Collaborator

This patch fixes the size of Kh_max_xx, which is on h-points but was
incorrectly allocated as if it were on B-points. This also indirectly
fixes an issue with the calculation of its checksum.

This also fixes two checksum bugs, where the Kh_max_xy and Ah_max_xy
were incorrectly computing the Kh_max_xx and Ah_max_xx checksums
(respectively).

As a side note, this was incorrectly reporting an invariance of the
Kh_max_xy checksum, a B-point quanity, since it was computing the
Kh_max_xx checksum (h-point) on B-points.

This patch fixes the size of Kh_max_xx, which is on h-points but was
incorrectly allocated as if it were on B-points.  This also indirectly
fixes an issue with the calculation of its checksum.

This also fixes two checksum bugs, where the Kh_max_xy and Ah_max_xy
were incorrectly computing the Kh_max_xx and Ah_max_xx checksums
(respectively).

As a side note, this was incorrectly reporting an invariance of the
Kh_max_xy checksum, a B-point quanity, since it was computing the
Kh_max_xx checksum (h-point) on B-points.

This PR resolves the inconsistency of Kh_max_x[xy] and Ah_max_x[xy]
checksums across experiments, and slightly reduces Kh_max_xx to its
correct size.
Copy link
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with these corrections.

@codecov-io
Copy link

codecov-io commented Nov 8, 2019

Codecov Report

❗ No coverage uploaded for pull request base (dev/gfdl@dd0e7d4). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             dev/gfdl   #1023   +/-   ##
==========================================
  Coverage            ?   43.2%           
==========================================
  Files               ?     212           
  Lines               ?   62298           
  Branches            ?       0           
==========================================
  Hits                ?   26918           
  Misses              ?   35380           
  Partials            ?       0
Impacted Files Coverage Δ
src/parameterizations/lateral/MOM_hor_visc.F90 62.14% <100%> (ø)

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 dd0e7d4...b541527. Read the comment docs.

@marshallward
Copy link
Collaborator Author

Gaea regression testing: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/pipelines/9323

@marshallward
Copy link
Collaborator Author

Gaea tests have passed.

@Hallberg-NOAA Hallberg-NOAA merged commit 8000b1c into mom-ocean:dev/gfdl Nov 9, 2019
@marshallward marshallward deleted the visc_max_chksums branch February 13, 2020 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants