-
Notifications
You must be signed in to change notification settings - Fork 85
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
Use interp::linear instead of hand rolled interpolation #1345
Conversation
|
I'm fairly certain this diff is due to a bug in the current interpolation, this PR should fix it. Here's a sample output where the old and new interpolations differ For the older interpolation to work correctly, amr-wind/amr-wind/equation_systems/icns/source_terms/ABLMeanBoussinesq.cpp Lines 90 to 96 in baefdc9
|
TODOs, other places to check:
|
Further evidence that the new interpolation is doing the right thing: |
amr-wind/equation_systems/icns/source_terms/ABLMeanBoussinesq.cpp
Outdated
Show resolved
Hide resolved
Fantastic work finding and fixing these bugs! |
How do we know we caught all the hand-rolled interps? |
All of these seemed to have a similar code pattern of looking at |
549a054
to
4e2b21e
Compare
Summary
There are a few existing places where we have hand rolled interpolation code, this PR aims to identify and change those cases to use
interp::linear
andinterp::bilinear
where appropriate.Pull request type
Please check the type of change introduced:
Checklist
The following is included:
This PR was tested by running:
Additional background
Issue Number: