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 INTERFACE_FILTER_DT_BUG #850

Open
wants to merge 2 commits into
base: dev/gfdl
Choose a base branch
from

Conversation

awallcraft
Copy link

A new parameter, INTERFACE_FILTER_DT_BUG, is added to fix two bugs in
the time interval passed to interface_filter and to thickness_diffuse.

This parameter has no effect, and is not read or logged, when
THICKNESSDIFFUSE_FIRST is true and DT_TRACER_ADVECT = DT_THERMO or
when both THICKNESSDIFFUSE_FIRST and APPLY_INTERFACE_FILTER are false.
Its default is false which will change answers in the rare existing cases
with the bug. In such cases, the original answers can be restored by
setting INTERFACE_FILTER_DT_BUG to true.

In addition, a missing calc_derived_thermo call has been added:
In non-Boussinesq mode, calc_derived_thermo needs to be called before
diag_update_remap_grids. Commit 23b2049 appears to require an extra call.
Without the call, MOM6 issues a FATAL error message.

In non-Boussinesq mode, calc_derived_thermo needs to be called before
diag_update_remap_grids.  Commit 23b2049 appears to require an extra call.
Without the call, MOM6 issues a FATAL error message.
A new parameter, INTERFACE_FILTER_DT_BUG, is added to fix two bugs in
the time interval passed to interface_filter and to thickness_diffuse.

This parameter has no effect, and is not read or logged, when
THICKNESSDIFFUSE_FIRST is true and DT_TRACER_ADVECT = DT_THERMO or
when both THICKNESSDIFFUSE_FIRST and APPLY_INTERFACE_FILTER are false.
Its default is false which will change answers in the rare existing cases
with the bug.  In such cases, the original answers can be restored by
setting INTERFACE_FILTER_DT_BUG to true.
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.

Having read through these proposed changes, I am convinced that they are correct, but I think that before merging this in I would like to see whether @theresa-cordero agrees.

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