Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_EB2_IF_AllRegular.H
Go to the documentation of this file.
1#ifndef AMREX_EB2_IF_ALL_REGULAR_H_
2#define AMREX_EB2_IF_ALL_REGULAR_H_
3#include <AMReX_Config.H>
4
5#include <AMReX_Array.H>
6#include <AMReX_EB2_IF_Base.H>
7
14namespace amrex::EB2 {
15
16// For all implicit functions, >0: body; =0: boundary; <0: fluid
17
20 : public GPUable
21{
22public:
24 constexpr Real operator() (const RealArray&) const noexcept { return -1.0; }
25
27 constexpr Real operator() (AMREX_D_DECL(Real, Real, Real)) const noexcept { return -1.0; }
28};
29
30}
31
32#endif
#define AMREX_D_DECL(a, b, c)
Definition AMReX_SPACE.H:171
Trivial implicit function that always returns the "fluid" sign.
Definition AMReX_EB2_IF_AllRegular.H:21
constexpr Real operator()(const RealArray &) const noexcept
Always returns a negative value so EB2 treats every cell as regular.
Definition AMReX_EB2_IF_AllRegular.H:24
amrex_real Real
Floating Point Type for Fields.
Definition AMReX_REAL.H:79
Definition AMReX_FabArrayBase.H:33
Array< Real, 3 > RealArray
Definition AMReX_Array.H:28
Marker base that denotes an implicit function callable on device kernels.
Definition AMReX_EB2_IF_Base.H:19