-
Notifications
You must be signed in to change notification settings - Fork 247
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
[Core] Adding SynchronizePointsWithBoundingBox
method
#11877
[Core] Adding SynchronizePointsWithBoundingBox
method
#11877
Conversation
@roigcarlo can you take a look? |
kratos/utilities/search_utilities.h
Outdated
|
||
// Auxiliary variables | ||
std::size_t counter = 0; | ||
array_1d<double, 3> coordinates; |
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.
Just a suggestion, I found the declaration of coordinates
here confusing, because then you are forced to use noalias(coordinates)
to avoid the copy. In this particular case, and since the only usage is to assign it, you could just
send_points_coordinates[3 * counter + i_coord] = it_point->Coordinates()[i_coord]
or
auto & coords = it_point->Coordinates();
send_points_coordinates[3 * counter + i_coord] = coords[i_coord]
But both of them would get optimized anyway....
kratos/utilities/search_utilities.h
Outdated
|
||
// Some definitions | ||
IndexType i_coord = 0; | ||
array_1d<double, 3> coordinates; |
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.
Similar comment, but in this function you are only using it in the serial condition so even better.
Co-authored-by: Carlos Roig <[email protected]>
Co-authored-by: Carlos Roig <[email protected]>
Co-authored-by: Carlos Roig <[email protected]>
Shold be Okay now @roigcarlo |
📝 Description
This method will be used in the future
SearchWrapper
class in order to estimate the points to be computed in the distributed search taking into account a bounding box filtering (only the points insise the BB).🆕 Changelog