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

bboxWrap correction #108

Merged
merged 3 commits into from
Jul 17, 2024
Merged

bboxWrap correction #108

merged 3 commits into from
Jul 17, 2024

Conversation

Fuad-HH
Copy link

@Fuad-HH Fuad-HH commented Jul 14, 2024

The bbcxWrap() was initialized with zero, resulting in get_bounding_box or find_bounding_box giving wrong answers when the mesh lives on only one side of an axis. Instead of zero, I used Kokkos::Experimental::finite_min_v and finite_max_v for max and min respectively. I also added two test cases for bbox in unit_mesh.cpp.

Copy link

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

Good catch. It looks like my former self broke this during Kokkos-ification. Thanks for the fix. A few small comments are below.

src/Omega_h_bbox.cpp Outdated Show resolved Hide resolved
src/Omega_h_vector.hpp Outdated Show resolved Hide resolved
src/Omega_h_vector.hpp Outdated Show resolved Hide resolved
src/Omega_h_vector.hpp Outdated Show resolved Hide resolved
Copy link

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

Thanks for the edits. I added one more comment regarding Kokkos::Experimental.

src/Omega_h_vector.hpp Outdated Show resolved Hide resolved
@cwsmith
Copy link

cwsmith commented Jul 15, 2024

/runtests

Copy link

Test Result: failure (details)

src/Omega_h_vector.hpp Outdated Show resolved Hide resolved
@cwsmith
Copy link

cwsmith commented Jul 16, 2024

/runtests

@cwsmith cwsmith merged commit 00131eb into SCOREC:master Jul 17, 2024
7 of 14 checks passed
@cwsmith cwsmith added scorec-v10.8.5 bug Something isn't working labels Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working scorec-v10.8.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants