Skip to content
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

Switch top tree in DistributedTree to new API and do some cleanup #1015

Merged
merged 3 commits into from
Jan 5, 2024

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented Jan 4, 2024

  • Change top tree to new API
  • Change Distances args in reassesStrategy and deviseStrategy to const
  • Change order of the args in reassesStrategy and deviseStrategy to align with query
  • Introduce BoundingVolume alias in DistributedTree
  • Rename generic indices to nearest_ranks and intersected_ranks in DistributedTree queries implementation
  • Fix several labels (regions, views, kernels) to follow the standard format

@aprokop aprokop added the refactoring Code reorganization label Jan 4, 2024
@aprokop aprokop changed the title Switch top tree to new API and do some cleanup Switch top tree in DistributedTree to new API and do some cleanup Jan 4, 2024
Copy link
Collaborator

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK.

@masterleinad
Copy link
Collaborator

What changed?

@aprokop
Copy link
Contributor Author

aprokop commented Jan 4, 2024

What changed?

Sorry, I should have made a separate commit. I included few extra headers as the self-containment tests were failing.

src/ArborX_DistributedTree.hpp Show resolved Hide resolved
src/ArborX_DistributedTree.hpp Outdated Show resolved Hide resolved
src/details/ArborX_DetailsDistributedTreeSpatial.hpp Outdated Show resolved Hide resolved
DistributedTree const &tree, Indices &indices,
Offset &offset, Distances &);
DistributedTree const &tree,
Predicates const &queries, Distances const &,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you do change
(indices, offsets, distances) -> (distances, indices, offsets)
and why did you const the distances?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only read the distances, and don't modify them. So const makes it clearer.
I changed the order to follow the same principle: input arguments followed by output arguments.

@aprokop
Copy link
Contributor Author

aprokop commented Jan 5, 2024

Rebased on #1016.

@aprokop aprokop merged commit b6080f3 into arborx:master Jan 5, 2024
1 of 2 checks passed
@aprokop aprokop deleted the some_distributed_cleanup branch January 5, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code reorganization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants