Skip to content

Add REMAPPING_SCHEME for OBC, ODA and SPONGE#751

Merged
adcroft merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
awallcraft:X_REMAP
Nov 8, 2024
Merged

Add REMAPPING_SCHEME for OBC, ODA and SPONGE#751
adcroft merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
awallcraft:X_REMAP

Conversation

@awallcraft
Copy link
Copy Markdown

Most modules that use remapping have their own parameter e.g. Z_INIT_REMAPPING_SCHEME. However, OBC, ODA and SPONGE currently sliently use the primary ALE REMAPPING_SCHEME parameter.

Added logged parameters OBC_REMAPPING_SCHEME, ODA_REMAPPING_SCHEME and SPONGE_REMAPPING_SCHEME to allow customization. All take REMAPPING_SCHEME as their default to maintain compatibility.

For ODA, also added ODA_REMAPPING_USE_OM4_SUBCELLS that takes REMAPPING_USE_OM4_SUBCELLS as its default to maintain compatibility, and ODA_BOUNDARY_EXTRAP that takes BOUNDARY_EXTRAPOLATION as its default to maintain compatibility. Note that BOUNDARY_EXTRAPOLATION is a bug, it should have been REMAP_BOUNDARY_EXTRAP, but the former remains the default for compatibility.

For SPONGE, also added SPONGE_BOUNDARY_EXTRAP that takes BOUNDARY_EXTRAPOLATION as its default to maintain compatibility. Note that BOUNDARY_EXTRAPOLATION is a bug, it should have been REMAP_BOUNDARY_EXTRAP, but the former remains the default for compatibility.

Answers are unchanged, but there are new logged parameters.

Most modules that use remapping have their own parameter e.g.
Z_INIT_REMAPPING_SCHEME.  However, OBC, ODA and SPONGE currently
sliently use the primary ALE REMAPPING_SCHEME parameter.

Added logged parameters OBC_REMAPPING_SCHEME, ODA_REMAPPING_SCHEME
and SPONGE_REMAPPING_SCHEME to allow customization.  All take
REMAPPING_SCHEME as their default to maintain compatibility.

For ODA, also added ODA_REMAPPING_USE_OM4_SUBCELLS that takes
REMAPPING_USE_OM4_SUBCELLS as its default to maintain compatibility,
and ODA_BOUNDARY_EXTRAP that takes BOUNDARY_EXTRAPOLATION as its
default to maintain compatibility.  Note that BOUNDARY_EXTRAPOLATION
is a bug, it should have been REMAP_BOUNDARY_EXTRAP, but the former
remains the default for compatibility.

For SPONGE, also added SPONGE_BOUNDARY_EXTRAP that takes
BOUNDARY_EXTRAPOLATION as its default to maintain compatibility.
Note that BOUNDARY_EXTRAPOLATION is a bug, it should have been
REMAP_BOUNDARY_EXTRAP, but the former remains the default for
compatibility.

Answers are unchanged, but there are new logged parameters.
Copy link
Copy Markdown
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.

Adding these new run-time parameters is a good idea, and I agree with these enhancements.

@Hallberg-NOAA Hallberg-NOAA added the Parameter change Input parameter changes (addition, removal, or description) label Nov 4, 2024
Copy link
Copy Markdown
Member

@adcroft adcroft left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Syncing the settings and defaults is a good idea. I resolved conflicts with dev/gfdl which had moved the OBC remapping parameters into the OBC type. Currently testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/25425

@adcroft adcroft merged commit 31a4d8b into NOAA-GFDL:dev/gfdl Nov 8, 2024
theresa-cordero pushed a commit to theresa-cordero/MOM6 that referenced this pull request Nov 18, 2024
Most modules that use remapping have their own parameter e.g.
Z_INIT_REMAPPING_SCHEME.  However, OBC, ODA and SPONGE currently
sliently use the primary ALE REMAPPING_SCHEME parameter.

Added logged parameters OBC_REMAPPING_SCHEME, ODA_REMAPPING_SCHEME
and SPONGE_REMAPPING_SCHEME to allow customization.  All take
REMAPPING_SCHEME as their default to maintain compatibility.

For ODA, also added ODA_REMAPPING_USE_OM4_SUBCELLS that takes
REMAPPING_USE_OM4_SUBCELLS as its default to maintain compatibility,
and ODA_BOUNDARY_EXTRAP that takes BOUNDARY_EXTRAPOLATION as its
default to maintain compatibility.  Note that BOUNDARY_EXTRAPOLATION
is a bug, it should have been REMAP_BOUNDARY_EXTRAP, but the former
remains the default for compatibility.

For SPONGE, also added SPONGE_BOUNDARY_EXTRAP that takes
BOUNDARY_EXTRAPOLATION as its default to maintain compatibility.
Note that BOUNDARY_EXTRAPOLATION is a bug, it should have been
REMAP_BOUNDARY_EXTRAP, but the former remains the default for
compatibility.

Answers are unchanged, but there are new logged parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Parameter change Input parameter changes (addition, removal, or description)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants