-
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 linear interpolation in DragForcing #1323
Conversation
479083a
to
1a28cdf
Compare
Here are some timing tests for a case with ~ 13 million cells on 208 cores Older nearest search: Time spent in Evolve(): 2914.012737 |
@hgopalan Thanks for doing that comparison. I thought of a better/less complicated way. Would you mind checking the timing with the latest? |
de54e2f
to
cabf7d6
Compare
bcc8463
to
c298896
Compare
Here are some timing tests for a case with ~ 13 million cells on 208 cores Older nearest search: Time spent in Evolve(): 2914.012737 |
1.25X speedup. I will take it ;) |
Summary
This is much more efficient than the current implementation since it does a bisection search. Also instead of a nearest neighbor it uses a linear interpolation. One can recover the previous implementation by just using the new
nearest_search
.Pull request type
Please check the type of change introduced:
Checklist
The following is included:
This PR was tested by running: