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

+*Revise non-Boussinesq offline tracer diffusivity #461

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Rescale the units diapycnal diffusivity used in the offline tracer mode to work in [H Z T-1 ~> m2 s-1 or kg m-1 s-1], making it consistent with what has already been done for other diapycnal diffusivities. This change involves changes to the units of arguments to update_offline_from_files and ALE_offline_inputs and to two elements of offline_transport_CS. It also includes a new thermo_vary_type argument to offline_diabatic_ale, as well as a call to thickness_to_dz in that same routine to set the values of the newly added 3-d array of the vertical distances across layers and a change in name and units of the inverse thickness variable used to find the fluxes. All answers are bitwise identical in Boussinesq mode, but in offline tracer calculations in non-Boussinesq mode they will change to become independent of the Boussinesq reference density.

  Rescale the units diapycnal diffusivity used in the offline tracer mode to
work in [H Z T-1 ~> m2 s-1 or kg m-1 s-1], making it consistent with what has
already been done for other diapycnal diffusivities.  This change involves
changes to the units of arguments to update_offline_from_files and
ALE_offline_inputs and to two elements of offline_transport_CS.   It also
includes a new thermo_vary_type argument to offline_diabatic_ale, as well as a
call to thickness_to_dz in that same routine to set the values of the newly
added 3-d array of the vertical distances across layers and a change in name and
units of the inverse thickness variable used to find the fluxes.  All answers
are bitwise identical in Boussinesq mode, but in offline tracer calculations in
non-Boussinesq mode they will change to become independent of the Boussinesq
reference density.
@Hallberg-NOAA Hallberg-NOAA added the enhancement New feature or request label Aug 16, 2023
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #461 (a4ca741) into dev/gfdl (279ee1c) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head a4ca741 differs from pull request most recent head 9025c07. Consider uploading reports for the commit 9025c07 to get more accurate results

@@            Coverage Diff            @@
##           dev/gfdl     #461   +/-   ##
=========================================
  Coverage     38.01%   38.01%           
=========================================
  Files           270      270           
  Lines         77761    77763    +2     
  Branches      14371    14371           
=========================================
+ Hits          29558    29560    +2     
  Misses        42837    42837           
  Partials       5366     5366           
Files Changed Coverage Δ
src/ALE/MOM_ALE.F90 44.26% <ø> (ø)
src/core/MOM.F90 50.73% <0.00%> (ø)
src/tracer/MOM_offline_aux.F90 0.00% <0.00%> (ø)
src/tracer/MOM_offline_main.F90 0.00% <0.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/20491 ✔️

@marshallward marshallward merged commit 7d199ca into NOAA-GFDL:dev/gfdl Aug 30, 2023
10 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the nonBoussinesq_offline_Kd branch November 8, 2023 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants