1 #ifndef AMREX_EB_STL_UTILS_H_
2 #define AMREX_EB_STL_UTILS_H_
4 #include <AMReX_Config.H>
24 [[nodiscard]] Real
cent (
int d)
const
26 static_assert(
sizeof(
XDim3) ==
sizeof(Real)*3);
27 return Real(1./3.)*((&
v1.
x)[d] + (&
v2.
x)[d] + (&
v3.
x)[d]);
30 [[nodiscard]] std::pair<Real,Real>
minmax (
int d)
const
32 static_assert(
sizeof(
XDim3) ==
sizeof(Real)*3);
33 return std::minmax({(&
v1.
x)[d], (&
v2.
x)[d], (&
v3.
x)[d]});
37 template <
int M,
int N>
44 std::numeric_limits<Real>::lowest(),
45 std::numeric_limits<Real>::lowest())};
69 Real outside_value = -1._rt, Real inside_value = 1._rt)
const;
73 static constexpr
bool isGPUable () noexcept {
return true; }
76 Box const& bounding_box)
const;
81 Box const& bounding_box)
const;
112 static void bvh_size (
int ntri, std::size_t& nnodes);
#define AMREX_D_DECL(a, b, c)
Definition: AMReX_SPACE.H:104
Rectangular problem domain geometry.
Definition: AMReX_Geometry.H:73
A collection (stored as an array) of FArrayBox objects.
Definition: AMReX_MultiFab.H:38
Definition: AMReX_PODVector.H:246
A Box with real dimensions. A RealBox is OK iff volume >= 0.
Definition: AMReX_RealBox.H:21
@ max
Definition: AMReX_ParallelReduce.H:17
static constexpr int M
Definition: AMReX_OpenBC.H:13
Definition: AMReX_Amr.cpp:49
RunOn
Definition: AMReX_GpuControl.H:69
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 end(BoxND< dim > const &box) noexcept
Definition: AMReX_Box.H:1890
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE IntVectND< dim > scale(const IntVectND< dim > &p, int s) noexcept
Returns a IntVectND obtained by multiplying each of the components of this IntVectND by s.
Definition: AMReX_IntVect.H:1006
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Dim3 begin(BoxND< dim > const &box) noexcept
Definition: AMReX_Box.H:1881
std::array< T, N > Array
Definition: AMReX_Array.H:24
Definition: AMReX_Array4.H:61
Definition: AMReX_Dim3.H:13
Real x
Definition: AMReX_Dim3.H:13