Skip to content

*+Revise horizontal averaging in Calc_kappa_shear_vertex#4

Merged
breichl merged 1 commit into
breichl:user/bgr/Kappa_Shear_HorzAvgfrom
Hallberg-NOAA:Kappa_shear_horavg_rebase
Mar 6, 2025
Merged

*+Revise horizontal averaging in Calc_kappa_shear_vertex#4
breichl merged 1 commit into
breichl:user/bgr/Kappa_Shear_HorzAvgfrom
Hallberg-NOAA:Kappa_shear_horavg_rebase

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown

Revised the Calc_kappa_shear_vertex() code where it averages the diffusivities at the vertices back to the tracer points when there is either a geometric mean being used or thickness weighting. With these changes, the code should now pass dimensional consistency testing, work properly with openMP threading enabled, and give sensible values of the diffusivity for massless layers. This can change answers slightly in some cases where VERTEX_SHEAR = True, especially if VERTEX_SHEAR_GEOMETRIC_MEAN = True or VERTEX_SHEAR_THICKNESS_MEAN = True. The recently added runtime parameter VERTEX_SHEAR_KD_MEAN_ANSWER_DATE (which has not yet been added to the dev/gfdl branch of the code) was no longer needed and has been eliminated.

@Hallberg-NOAA Hallberg-NOAA force-pushed the Kappa_shear_horavg_rebase branch from ca7f68e to faa3a6f Compare March 6, 2025 10:12
  Revised the Calc_kappa_shear_vertex code where it averages the diffusivities
at the vertices back to the tracer points when there is either a geometric mean
being used or thickness weighting.  With these changes, the code should now pass
dimensional consistency testing, work properly with openMP threading enabled,
and give sensible values of the diffusivity for massless layers.  Also corrected
the indenting of several recently added lines to follow the MOM6 2-space
indenting convention.  This commit can change answers slightly in some cases
where VERTEX_SHEAR = True, especially if VERTEX_SHEAR_GEOMETRIC_MEAN = True or
VERTEX_SHEAR_THICKNESS_MEAN = True.  The recently added runtime parameter
VERTEX_SHEAR_KD_MEAN_ANSWER_DATE (which has not yet been added to the dev/gfdl
branch of the code) was no longer needed and has been eliminated.
@Hallberg-NOAA Hallberg-NOAA force-pushed the Kappa_shear_horavg_rebase branch from faa3a6f to 8eaf06a Compare March 6, 2025 10:40
@breichl breichl merged commit a85d776 into breichl:user/bgr/Kappa_Shear_HorzAvg Mar 6, 2025
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