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

Nudging Index Fix #1387

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Nudging Index Fix #1387

merged 2 commits into from
Jan 19, 2024

Conversation

AMLattanzi
Copy link
Collaborator

The ii/jj variables ensure that we do not go out of bounds when accessing the bdy data for nudging. The variable width that is passed into wrfbdy_compute_interior_ghost_rh is 1 less than the total width of the bdy data; this is because the last element of the bdy data is ghost cell for the Laplacian operator. However, when interpolating data into the FArrayBoxes we will need to access that ghost cell value; it is needed for the velocity to momentum conversion. Previously, the +/- 1 prevented ii/jj from getting to the last element of the bdy data. Since the FLOWMAS project is heavily using this functionality, I have left the debug statements in Utils.H. Once we have confidence everything is good, this should be deleted.

@AMLattanzi AMLattanzi merged commit 0afd4cd into erf-model:development Jan 19, 2024
11 checks passed
@AMLattanzi AMLattanzi deleted the NudgingFix branch February 1, 2024 16:04
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.

1 participant