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

Fix bug in radiation OBC update #645

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

Conversation

theresa-morrison
Copy link

When the update to the radiation OBC's is called the time-averaged velocity should be used, not the instantaneous velocity. This was fixed in the RK2B algorithm but not in RK2A in part because of how the update to the OBC's is between a non-blocking update.

The original sequence has been preserved, but an additional call to update the radiation OBC's has been added after the blocking update which should only be do if OBC's are used and the bug flag is set to false.

This PR will not change answers for simulations without OBC's and will only change answers for cases with OBC's when USE_OBC_U_INST_BUG = True.

Theresa Morrison added 2 commits May 20, 2024 15:40
Add an option to use the correct velocity (u_av) in the radation
OBC calculation in RK2.
@theresa-morrison theresa-morrison marked this pull request as draft May 23, 2024 15:49
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.

These changes seem like they are moving in the right direction. There are two changes to this commit that I would suggest:

  1. Remove the comment on lines 1022-1023 of the new code, as this change addresses the point made by that comment.
  2. Add a do_not_log=.not.associated(OBC) flag to the new get_param() call for USE_OBC_U_INST_BUG so that it does not appear in the MOM_parameter_doc files for cases where it is not relevant.

@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working Parameter change Input parameter changes (addition, removal, or description) labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants