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

Add wrappers for ArborX::Sphere #13565

Merged
merged 3 commits into from Apr 4, 2022
Merged

Conversation

Rombur
Copy link
Member

@Rombur Rombur commented Mar 23, 2022

ArborX supports three different geometrical objects: Box, Point, and Sphere. We already have wrappers for Box and Point, this PR adds wrappers for Sphere.

@Rombur Rombur force-pushed the arborx_sphere branch 2 times, most recently from 1feb029 to 3f2c227 Compare March 23, 2022 13:16
Copy link
Member

@jppelteret jppelteret left a comment

Choose a reason for hiding this comment

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

Just a few very superficial comments from me, otherwise I think this looks good. Thanks @Rombur!

doc/news/changes/minor/20220311Turcksin Outdated Show resolved Hide resolved
include/deal.II/arborx/access_traits.h Outdated Show resolved Hide resolved
include/deal.II/arborx/access_traits.h Outdated Show resolved Hide resolved
include/deal.II/arborx/access_traits.h Outdated Show resolved Hide resolved
include/deal.II/arborx/access_traits.h Outdated Show resolved Hide resolved
include/deal.II/arborx/access_traits.h Outdated Show resolved Hide resolved
include/deal.II/arborx/access_traits.h Outdated Show resolved Hide resolved
spheres.reserve(size);
for (unsigned int i = 0; i < size; ++i)
{
spheres.emplace_back(std::make_pair(
Copy link
Member

Choose a reason for hiding this comment

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

Do you wish to add here the same comment that you make later, i.e.

    // ArborX assumes that the center coordinates and the radius use float and
    // the sphere is 3D

?

source/arborx/access_traits.cc Show resolved Hide resolved
Copy link
Member

@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.

Apart from @jppelteret's comments, this looks good to me.

@Rombur
Copy link
Member Author

Rombur commented Mar 25, 2022

I have updated the documentation

@marcfehling
Copy link
Member

/rebuild

@marcfehling marcfehling merged commit 0ed28ca into dealii:master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants