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

Restrict region for toFieldAligned() in VDDY() when not staggered #2268

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

johnomotani
Copy link
Contributor

When the derivative is not staggered, vel_aligned does not require y-guard cells, so toFieldAligned() can use "RGN_NOBNDRY" instead of "RGN_NOX". This is a slight optimisation, and avoids an exception that can be thrown from b0xGrad_dot_Grad() when using ShiftedMetricInterp, which is thrown because a result is calculated in uninitialised guard cells where it is not needed.

When the derivative is not staggered, vel_aligned does not require
y-guard cells, so toFieldAligned() can use "RGN_NOBNDRY" instead of
"RGN_NOX". This is a slight optimisation, and avoids an exception that
can be thrown from b0xGrad_dot_Grad() when using ShiftedMetricInterp,
which is thrown because a result is calculated in uninitialised guard
cells where it is not needed.
@johnomotani johnomotani added bugfix small-change Changes less than 100 lines - should be quick to review labels Mar 22, 2021
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@ZedThree ZedThree merged commit e7920b7 into next Mar 23, 2021
@ZedThree ZedThree deleted the vddy-region-fix branch March 23, 2021 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix small-change Changes less than 100 lines - should be quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants