-
Notifications
You must be signed in to change notification settings - Fork 15
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
tol parameter for trace_particle_through_mesh #141
Conversation
- passing all tests except smoke_test_particle It is giving a warning for MPI oversubscribing and "Structure not initalized at Particle"
- passing all tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I left a comment below about passing tol.
src/pumipic_adjacency.tpp
Outdated
@@ -466,7 +467,8 @@ namespace pumipic { | |||
o::Write<o::Real>& inter_points, | |||
int looplimit, | |||
bool debug, | |||
Func& func) { | |||
Func& func, | |||
o::Real &tol) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can tol
be made an optional argument to avoid the 'checking for negative' logic? Something like this:
https://godbolt.org/z/Poa5haq6d
instead of checking if tol was passed using negative values, it is made optional. In the future, tol will be calculated outside according to the standardization plan and for this reason, we don't need it to be passed as reference or pointer
Yes. Closing this one makes sense. |
Previously tolerance for the search method,
trace_particle_through_mesh
, was computed every time it is called which can be unnecessary if the mesh doesn't change as described in issue #138. It involves a parallel reduction operation which can be expensive.Closes #138.