9#define UnsupportedCellType(fname) \
10 std::invalid_argument((fname) + \
11 ": Unsupported cell type encountered. type_id=" + \
12 std::to_string(static_cast<int>(cell.Type())));
23 line_quad_order_arbitrary_(q_order),
24 tri_quad_order_arbitrary_(q_order),
25 quad_quad_order_arbitrary_(q_order),
26 tet_quad_order_arbitrary_(q_order)
32 constexpr std::string_view fname = __PRETTY_FUNCTION__;
42 std::unique_ptr<chi_math::CellMapping> mapping;
50 mapping = make_unique<SlabSlab>(cell,
ref_grid_, vol_quad);
58 mapping = make_unique<Polygon>(cell,
ref_grid_, vol_quad, area_quad);
66 mapping = make_unique<Polyhedron>(cell,
ref_grid_, vol_quad, area_quad);
79 for (uint64_t ghost_id : ghost_ids)
83 std::make_pair(ghost_id, std::move(ghost_mapping)));
#define UnsupportedCellType(fname)
std::vector< std::unique_ptr< CellMapping > > cell_mappings_
std::map< uint64_t, std::shared_ptr< CellMapping > > nb_cell_mappings_
const chi_mesh::MeshContinuum & ref_grid_
QuadratureTriangle tri_quad_order_arbitrary_
QuadratureLine line_quad_order_arbitrary_
PieceWiseLinearBase(const chi_mesh::MeshContinuum &grid, QuadratureOrder q_order, SDMType sdm_type, CoordinateSystemType cs_type)
void CreateCellMappings()
QuadratureTetrahedron tet_quad_order_arbitrary_
std::vector< uint64_t > GetGhostGlobalIDs() const
LocalCellHandler local_cells
SpatialDiscretizationType