Skip to content
Snippets Groups Projects
Commit 3b8b63bc authored by Prokopenko, Andrey's avatar Prokopenko, Andrey :thinking:
Browse files

Fix forgotten communicator release


Co-authored-by: default avatarDamien L-G <dalg24@gmail.com>
parent 489e973a
No related branches found
No related tags found
1 merge request!135Use MPI_Comm_dup to separate ArborX comm context from user's
This commit is part of merge request !135. Comments created here will be created in the context of that merge request.
......@@ -40,6 +40,8 @@ public:
template <typename Primitives>
DistributedSearchTree(MPI_Comm comm, Primitives const &primitives);
~DistributedSearchTree() { MPI_Comm_free(&_comm); }
/** Returns the smallest axis-aligned box able to contain all the objects
* stored in the tree or an invalid box if the tree is empty.
*/
......@@ -107,6 +109,8 @@ DistributedSearchTree<DeviceType>::DistributedSearchTree(
MPI_Comm comm, Primitives const &primitives)
: _bottom_tree(primitives)
{
// Create new context for the library to isolate library's communication from
// user's
MPI_Comm_dup(comm, &_comm);
int comm_rank;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment