1 #ifndef AMREX_EB2_IF_POLYNOMIAL_H_
2 #define AMREX_EB2_IF_POLYNOMIAL_H_
3 #include <AMReX_Config.H>
32 template <
unsigned int N>
41 m_sign( a_inside ? 1.0_rt : -1.0_rt )
74 m_sign( a_inside ? 1.0_rt : -1.0_rt ),
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
#define AMREX_D_TERM(a, b, c)
Definition: AMReX_SPACE.H:129
#define AMREX_D_DECL(a, b, c)
Definition: AMReX_SPACE.H:104
Definition: AMReX_EB2_IF_Polynomial.H:35
Real m_sign
Definition: AMReX_EB2_IF_Polynomial.H:62
GpuArray< PolyTerm, N > m_polynomial
Definition: AMReX_EB2_IF_Polynomial.H:61
AMREX_GPU_HOST_DEVICE Real operator()(AMREX_D_DECL(Real x, Real y, Real z)) const noexcept
Definition: AMReX_EB2_IF_Polynomial.H:45
PolyIF(const GpuArray< PolyTerm, N > &a_polynomial, bool a_inside=true)
inside: is the fluid inside the ellipsoid?
Definition: AMReX_EB2_IF_Polynomial.H:39
Definition: AMReX_EB2_IF_Polynomial.H:22
Real coef
Coefficient of this polynomial term.
Definition: AMReX_EB2_IF_Polynomial.H:26
IntVect powers
Powers of this polynomial term.
Definition: AMReX_EB2_IF_Polynomial.H:29
Definition: AMReX_EB2_IF_Polynomial.H:67
PolynomialIF(PolynomialIF &&rhs)=default
int m_size
Definition: AMReX_EB2_IF_Polynomial.H:104
PolynomialIF(const PolynomialIF &rhs)=default
PolynomialIF & operator=(const PolynomialIF &rhs)=delete
Real operator()(AMREX_D_DECL(Real x, Real y, Real z)) const noexcept
Definition: AMReX_EB2_IF_Polynomial.H:85
Vector< PolyTerm > m_polynomial
Definition: AMReX_EB2_IF_Polynomial.H:101
Real m_sign
Definition: AMReX_EB2_IF_Polynomial.H:103
bool m_inside
Definition: AMReX_EB2_IF_Polynomial.H:102
PolynomialIF(const Vector< PolyTerm > &a_polynomial, bool a_inside=true)
inside: is the fluid inside the ellipsoid?
Definition: AMReX_EB2_IF_Polynomial.H:71
This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound che...
Definition: AMReX_Vector.H:27
Definition: AMReX_FabArrayBase.H:32
AMREX_GPU_HOST_DEVICE Long size(T const &b) noexcept
integer version
Definition: AMReX_GpuRange.H:26
Array< Real, AMREX_SPACEDIM > RealArray
Definition: AMReX_Array.H:26
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE GpuComplex< T > pow(const GpuComplex< T > &a_z, const T &a_y) noexcept
Raise a complex number to a (real) power.
Definition: AMReX_GpuComplex.H:418
const int[]
Definition: AMReX_BLProfiler.cpp:1664
Definition: AMReX_EB2_IF_Base.H:11
Definition: AMReX_Array.H:34