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

(*)non-Boussinesq Z unit update_OBC_segment_data #552

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

Hallberg-NOAA
Copy link
Member

Revised update_OBC_segment_data() to keep the z-space input data in height units ([Z ~> m]) rather than rescaling them to thickness units. This change means that the non-Boussinesq open boundary condition calculations avoid using the Boussinesq reference density. Associated with this change, 5 internal variables in update_OBC_segment_data() were renamed to reflect that they are layer vertical extents instead of thicknesses. Answers are bitwise identical in any Boussinesq cases. However, answers will change in any non-Boussinesq cases that use open boundary conditions that use time_interp_extrnal() to read in Z-space data.

@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request answer-changing A change in results (actual or potential) labels Jan 24, 2024
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: Patch coverage is 10.52632% with 51 lines in your changes are missing coverage. Please review.

Project coverage is 37.20%. Comparing base (86c5ed9) to head (b1f8d78).

Files Patch % Lines
src/core/MOM_open_boundary.F90 10.52% 49 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           dev/gfdl     #552   +/-   ##
=========================================
  Coverage     37.20%   37.20%           
=========================================
  Files           271      271           
  Lines         80475    80473    -2     
  Branches      15008    15008           
=========================================
+ Hits          29942    29943    +1     
+ Misses        44961    44958    -3     
  Partials       5572     5572           

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

@Hallberg-NOAA
Copy link
Member Author

This pull request was amended to also add descriptions of 25 internal variables in this module or their units, and to correct a number of instances of code that did not adhere to the guidance in the MOM_style_guide.

  Revised the update_OBC_segment_data code to keep the z-space input data in
height units ([Z ~> m]) rather than rescaling them to thickness units.  This
change means that the non-Boussinesq open boundary condition calculations avoid
using the Boussinesq reference density.  Associated with this change, 5 internal
variables in update_OBC_segment_data were renamed to reflect that they are layer
vertical extents instead of thicknesses.  Also added or amended comments
describing the purpose and units of 25 real variables in this module and
corrected a handful of lines in this module that were not adhering to the
guidance in the MOM6 style guide.  Answers are bitwise identical in any
Boussinesq cases.  However, answers will change in any non-Boussinesq cases that
use open boundary conditions that use time_interp_extrnal to read in Z-space
data.
@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 8f7df08 into NOAA-GFDL:dev/gfdl Feb 29, 2024
12 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the nonBous_OBC_input branch May 10, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answer-changing A change in results (actual or potential) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants