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

Add RESET_INTXPA_INTEGRAL_FLATTEST option to pressure gradient #843

Conversation

claireyung
Copy link

This new parameter RESET_INTXPA_INTEGRAL_FLATTEST modifies the reference interface for the horizontal pressure integrals in the finite volume pressure gradient force calculation. If true, in ocean columns where no non-tilted, non-vanished layer can be found (e.g. near specific shaped ice shelf grounding lines), rather than using the top surface to integrate downwards as the reference, the code finds and chooses the flattest (i.e. minimum difference between depth or pressure) interface as the reference.

The parameter defaults to False therefore should not change default answers. However, if true, combined with other ice shelf code changes e.g. MASS_WEIGHT_IN_PGF_VANISHED_ONLY = True, RESET_INTXPA_INTEGRAL = True, MASS_WEIGHT_IN_PRESSURE_GRADIENT = True and MASS_WEIGHT_IN_PRESSURE_GRADIENT_TOP = True + initialisation code fixes I get very low spurious currents in the Boussinesq ZSTAR and SIGMA_SHELF_ZSTAR ISOMIP+ test cases (note non-Boussinesq still not quiet).

This is an alternative to the inconsistent and slow, closed PR #811

Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really appreciate this contribution, and I am tempted to accept it as is, but I would prefer that the comment describing the new runtime parameter RESET_INTEXPA_INTEGRAL_FLATTEST refer to flat interfaces rather than flat layers.

Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this valuable new contribution!

This new parameter RESET_INTXPA_INTEGRAL_FLATTEST modifies the
reference interface for the horizontal pressure integrals in the
finite volume pressure gradient force calculation. If true,
in ocean columns where no non-tilted, non-vanished layer can be
found (e.g. near specific shaped ice shelf grounding lines), rather
than using the top surface to integrate downwards as the reference,
the code finds and chooses the flattest (i.e. minimum difference
between depth or pressure) interface as the reference.

The parameter defaults to False therefore should not change default
answers. However, if true, combined with other ice shelf code
changes e.g. MASS_WEIGHT_IN_PGF_VANISHED_ONLY = True,
RESET_INTXPA_INTEGRAL = True, MASS_WEIGHT_IN_PRESSURE_GRADIENT = True
and MASS_WEIGHT_IN_PRESSURE_GRADIENT_TOP = True + initialisation code
fixes I get very low spurious currents in the Boussinesq ZSTAR and
SIGMA_SHELF_ZSTAR ISOMIP+ test cases.
to refer to flattest interface rather than flattest layer.
@Hallberg-NOAA Hallberg-NOAA force-pushed the dev/gfdl-jan26_2025+flattest_ref_layer branch from bb7a11e to b7d7e8a Compare March 3, 2025 21:41
@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description) labels Mar 3, 2025
@Hallberg-NOAA
Copy link
Member

This PR has passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/26599 with the expected warnings about new runtime parameters.

@Hallberg-NOAA Hallberg-NOAA merged commit 3142c3f into NOAA-GFDL:dev/gfdl Mar 3, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants