Skip to content

Commit

Permalink
move finite_max to bbox wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuad-HH committed Jul 16, 2024
1 parent 4e52b05 commit 2312f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Omega_h_bbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ struct bboxWrap {

KOKKOS_INLINE_FUNCTION // Default constructor
bboxWrap() {
box.min = max_vector<N>();
box.max = min_vector<N>();
box.min = fill_vector<N>(Kokkos::Experimental::finite_max_v<Real>);
box.max = fill_vector<N>(Kokkos::Experimental::finite_min_v<Real>);
}
KOKKOS_INLINE_FUNCTION // Copy Constructor
bboxWrap(const bboxWrap & rhs) {
Expand Down
10 changes: 0 additions & 10 deletions src/Omega_h_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,6 @@ OMEGA_H_INLINE Vector<n> zero_vector() OMEGA_H_NOEXCEPT {
return fill_vector<n>(0.0);
}

template <Int n>
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_vector() OMEGA_H_NOEXCEPT {
return fill_vector<n>(Kokkos::Experimental::finite_min_v<Real>);
}

/* Moore-Penrose pseudo-inverse of a vector */
template <Int n>
OMEGA_H_INLINE Vector<n> pseudo_invert(Vector<n> a) OMEGA_H_NOEXCEPT {
Expand Down

0 comments on commit 2312f1d

Please sign in to comment.