Skip to content

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

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:nonBous_mass_inventories
Apr 12, 2024
Merged

(*)Avoiding using RHO_0 in non-Boussinesq debugging#588
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:nonBous_mass_inventories

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
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.
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
@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