11#ifndef EBGEOMETRY_REGIONNEIGHBORHOOD_HPP
12#define EBGEOMETRY_REGIONNEIGHBORHOOD_HPP
44 static constexpr uint32_t
None = 0xFFFFFFFFU;
83 region(uint32_t a_wholeRegion) const;
121 regionNeighborhood(const
Expr<U>& a_expr, const std::vector<uint32_t>& a_regions);
139 std::vector<uint32_t> m_wholeRegion;
144 std::vector<uint32_t> m_region;
149 std::vector<uint32_t> m_wholeSurface;
154 std::vector<uint32_t> m_surface;
159 std::vector<uint32_t> m_surfaceLabel;
164 std::vector<uint32_t> m_material;
193#include "EBGeometry_RegionNeighborhoodImplem.hpp"
DomainSetup: how a domain is made, as an editable value on the host (see Domain).
The tape's front end: Expr, a host-side value that describes a composed object, and the free function...
#define EBGEOMETRY_HOST
Mark a function as callable from host code only (no-op on host compilers).
Definition EBGeometry_GPU.hpp:83
LabelId: the number of a label, typed by what it labels (SurfaceLabelId, MaterialLabelId).
How a domain is made: its subdomains (the regions each computes in) and its surface groups (the selec...
Definition EBGeometry_DomainSetup.hpp:39
A composed object: an immutable tree of shapes and operations, built on the host and compiled by a Ta...
Definition EBGeometry_Expr.hpp:452
Some regions of an expression with their neighbors: a smaller expression in which those regions have ...
Definition EBGeometry_RegionNeighborhood.hpp:39
uint32_t surface(uint32_t a_wholeSurface) const
Its surface that a surface of the whole expression is (ExprIndex::getFirstSurface() numbering).
uint32_t getNumRegions() const noexcept
How many regions it has, the background (region 0) included.
DomainSetup setup(const DomainSetup &a_wholeSetup) const
A setup written for the whole expression, translated to this one: regions through the map,...
const Expr< T > & object() const noexcept
The smaller expression, to compile into a tape.
uint32_t wholeRegion(uint32_t a_region) const
The whole expression's region that one of its regions is.
RegionNeighborhood()=delete
No empty neighborhood: see regionNeighborhood().
uint32_t region(uint32_t a_wholeRegion) const
Its region that a region of the whole expression is.
uint32_t wholeSurface(uint32_t a_surface) const
The whole expression's surface that one of its surfaces is.
static constexpr uint32_t None
What region() gives for a region that was dropped.
Definition EBGeometry_RegionNeighborhood.hpp:44
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26
RegionNeighborhood< T > regionNeighborhood(const Expr< T > &a_expr, const std::vector< uint32_t > &a_regions)
Some regions of an expression and their neighbors: the regions that may touch them,...