-
Notifications
You must be signed in to change notification settings - Fork 6
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 strict inequality for search radius check? #19
Comments
Do you have a link for the code? I mean, if this is an edge case, why not handle the edge case differently instead of changing the check to strict inequality? |
Its currently handled differently.
The question is only if the special handling is necessary when we can instead reduce the search area by eps(). |
Yes, I see. But:
which means we loos a bit of performance when we calculate the |
It should be noted that |
As I said, the following should be sufficient: distance2 < search_radius^2 * (1 - eps()) |
I can live with |
We currently only check if
distance2 <= search_radius^2
.However, this causes problems in some computations. For example, this here in the surface tension computation:
This does not happen when
distance < search_radius
.The question is if there are any downsides to this strict inequality check. I don't see any.
Note that
distance2 < search_radius^2
is not sufficient:So we would have to do something like
The text was updated successfully, but these errors were encountered: