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

Checksum unrescaled non-Boussinesq thicknesses #348

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Redid the scaling of 52 checksum or check_redundant calls for thickness or transports to use the MKS counterparts of the thickness units (i.e., m and m3/s or kg/m2 and kg/s, depending on the Boussinesq approximation), rather than always rescaling them to m or m3/s. In Boussinesq mode, everything remains the same, but in non-Boussinesq mode, this means that the model's actual variable are being checksummed and not a version that is rescaled by division by the (meaningless?) Boussinesq reference density. All solutions are bitwise identical, but some debugging output will change in non-Boussinesq mode.

  Redid the scaling of 52 checksum or check_redundant calls for thickness or
transports to use the MKS counterparts of the thickness units (i.e., m and m3/s
or kg/m2 and kg/s, depending on the Boussinesq approximation), rather than
always rescaling them to m or m3/s.  In Boussinesq mode, everything remains the
same, but in non-Boussinesq mode, this means that the model's actual variable
are being checksummed and not a version that is rescaled by division by the
(meaningless?) Boussinesq reference density.  All solutions are bitwise
identical, but some debugging output will change in non-Boussinesq mode.
@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #348 (92ba298) into dev/gfdl (7225642) will decrease coverage by 0.01%.
The diff coverage is 56.86%.

❗ Current head 92ba298 differs from pull request most recent head d0efdee. Consider uploading reports for the commit d0efdee to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #348      +/-   ##
============================================
- Coverage     37.07%   37.07%   -0.01%     
============================================
  Files           264      264              
  Lines         74353    74353              
  Branches      13788    13788              
============================================
- Hits          27569    27568       -1     
  Misses        41686    41686              
- Partials       5098     5099       +1     
Impacted Files Coverage Δ
src/tracer/MOM_offline_main.F90 0.00% <0.00%> (ø)
src/core/MOM_barotropic.F90 58.98% <71.42%> (ø)
src/core/MOM.F90 51.41% <85.71%> (ø)
src/core/MOM_checksum_packages.F90 33.09% <100.00%> (ø)
src/core/MOM_dynamics_split_RK2.F90 62.94% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 4038d69 into NOAA-GFDL:dev/gfdl Apr 21, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the thickness_chksums_in_mks_units branch May 10, 2024 22:13
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.

3 participants