Skip to content

Commit

Permalink
change minmax function name for bboxwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuad-HH committed Jul 15, 2024
1 parent bce042b commit 4e52b05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Omega_h_bbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ template< int N >
struct bboxWrap {
BBox<N> box;

KOKKOS_INLINE_FUNCTION // Default constructor - Initialize to 0's
KOKKOS_INLINE_FUNCTION // Default constructor
bboxWrap() {
box.min = max_float_vector<N>();
box.max = min_float_vector<N>();
box.min = max_vector<N>();
box.max = min_vector<N>();
}
KOKKOS_INLINE_FUNCTION // Copy Constructor
bboxWrap(const bboxWrap & rhs) {
Expand Down
8 changes: 4 additions & 4 deletions src/Omega_h_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ OMEGA_H_INLINE Vector<n> zero_vector() OMEGA_H_NOEXCEPT {
}

template <Int n>
OMEGA_H_INLINE Vector<n> max_float_vector() OMEGA_H_NOEXCEPT {
return fill_vector<n>(Kokkos::Experimental::finite_max_v<float>);
OMEGA_H_INLINE Vector<n> max_vector() OMEGA_H_NOEXCEPT {
return fill_vector<n>(Kokkos::Experimental::finite_max_v<Real>);
}

template <Int n>
OMEGA_H_INLINE Vector<n> min_float_vector() OMEGA_H_NOEXCEPT {
return fill_vector<n>(Kokkos::Experimental::finite_min_v<float>);
OMEGA_H_INLINE Vector<n> min_vector() OMEGA_H_NOEXCEPT {
return fill_vector<n>(Kokkos::Experimental::finite_min_v<Real>);
}

/* Moore-Penrose pseudo-inverse of a vector */
Expand Down

0 comments on commit 4e52b05

Please sign in to comment.