35 KOKKOS_INLINE_FUNCTION
39 auto absDx = std::abs(dx);
41 return (absDx >= slabMin_ - tolerance_ && absDx <= slabMax_ + tolerance_);
44 KOKKOS_INLINE_FUNCTION
47 auto dx = coord - center_;
48 auto absDx = std::abs(dx);
50 return (absDx >= slabMin_ - tolerance_ && absDx <= slabMax_ + tolerance_);
57 const real_t tolerance = 0_r)
KOKKOS_INLINE_FUNCTION bool operator()(const real_t &x, const real_t &y, const real_t &z) const
Definition IsInSymmetricSlab.hpp:36
KOKKOS_INLINE_FUNCTION bool operator()(const real_t &coord) const
Definition IsInSymmetricSlab.hpp:45
IsInSymmetricSlab(const Point3D ¢er, const real_t slabMin, const real_t slabMax, const AXIS axis=AXIS::X, const real_t tolerance=0_r)
Definition IsInSymmetricSlab.hpp:53
Utility functions used throughout the library.
Top-level namespace of MRMD.
AXIS
Definition datatypes.hpp:141
@ X
index of the x coordinate in vector views
Definition datatypes.hpp:142
KOKKOS_INLINE_FUNCTION constexpr std::underlying_type_t< Enum > to_underlying(Enum e) noexcept
Definition datatypes.hpp:148
double real_t
Definition datatypes.hpp:99
Kokkos::Array< real_t, 3 > Point3D
Definition datatypes.hpp:100