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

(*)Avoiding using RHO_0 in non-Boussinesq debugging #588

Merged

Conversation

Hallberg-NOAA
Copy link
Member

When in non-Boussinesq mode, write out mass-based tracer inventories from calls to MOM_tracer_chkinv() and mean thicknesses in mass per unit area from calls to MOM_state_stats(), rather than the approximate volumes that depend on the Boussinesq reference density. Similarly the thicknesses and transports output by write_u_accel() and write_v_accel() are in mass per unit area or mass flux per unit face length in non-Boussinesq mode. This is done specifically by using GV%H_to_MKS in place of GV%H_to_m; these are identical in Boussinesq mode, but GV%H_to_MKS avoids rescaling by the Boussinesq reference density in non-Boussinesq mode. Several comments were also updated to reflect these changes. All solutions are identical, but there are changes in the units of several diagnostic output fields that the model can write out when debugging non-Boussinesq mode runs.

  When in non-Boussinesq mode, write out mass-based tracer inventories from
calls to MOM_tracer_chkinv and mean thicknesses in mass per unit area from calls
to MOM_state_stats, rather than the approximate volumes that depend on the
Boussinesq reference density.  Similarly the thicknesses and transports output
by write_u_accel and write_v_accel are in mass per unit area or mass flux per
unit face length in non-Boussinesq mode.  This is done specifically by using
GV%H_to_MKS in place of GV%H_to_m; these are identical in Boussinesq mode, but
GV%H_to_MKS avoids rescaling by the Boussinesq reference density in
non-Boussinesq mode.  Several comments were also updated to reflect these
changes.  All solutions are identical, but there are changes in the units of
several diagnostic output fields that the model can write out when debugging
non-Boussinesq mode runs.
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.93%. Comparing base (2d121dc) to head (8210921).

❗ Current head 8210921 differs from pull request most recent head 6a338ab. Consider uploading reports for the commit 6a338ab to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/gfdl     #588      +/-   ##
============================================
- Coverage     37.07%   36.93%   -0.15%     
============================================
  Files           271      271              
  Lines         80966    79328    -1638     
  Branches      15118    14748     -370     
============================================
- Hits          30019    29297     -722     
+ Misses        45324    44579     -745     
+ Partials       5623     5452     -171     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit c86358b into NOAA-GFDL:dev/gfdl Apr 12, 2024
9 of 10 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the nonBous_mass_inventories branch May 10, 2024 21:27
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.

2 participants