1 #ifndef AMREX_EB2_IF_LATHE_H_
2 #define AMREX_EB2_IF_LATHE_H_
3 #include <AMReX_Config.H>
24 Real
r = std::hypot(p[0],p[1]);
25 #if (AMREX_SPACEDIM == 2)
28 return m_f({
r,p[2],0.0});
32 template <class U=F, std::enable_if_t<IsGPUable<U>::value,
int> = 0>
36 Real
r = std::hypot(
x,y);
37 #if (AMREX_SPACEDIM == 2)
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
#define AMREX_D_DECL(a, b, c)
Definition: AMReX_SPACE.H:104
Definition: AMReX_EB2_IF_Lathe.H:17
LatheIF(F a_f)
Definition: AMReX_EB2_IF_Lathe.H:20
F m_f
Definition: AMReX_EB2_IF_Lathe.H:46
Real operator()(const RealArray &p) const noexcept
Definition: AMReX_EB2_IF_Lathe.H:22
Definition: AMReX_FabArrayBase.H:32
constexpr LatheIF< std::decay_t< F > > lathe(F &&f)
Definition: AMReX_EB2_IF_Lathe.H:55
static int f(amrex::Real t, N_Vector y_data, N_Vector y_rhs, void *user_data)
Definition: AMReX_SundialsIntegrator.H:44
Array< Real, AMREX_SPACEDIM > RealArray
Definition: AMReX_Array.H:26
Definition: AMReX_EB2_IF_Base.H:15