12#include <xtensor/containers/xarray.hpp>
13#include <xtensor/core/xtensor_forward.hpp>
15#include "oiseau/mesh/cell.hpp"
16#include "oiseau/mesh/mesh.hpp"
29 mesh::CellKind
kind = mesh::CellKind::Undefined;
41 DGSpace(
const DGSpace& V) =
delete;
60 DGSpace(DGSpace&& V) =
default;
62 DGSpace& operator=(
const DGSpace& V) =
delete;
63 DGSpace& operator=(DGSpace&& V) =
delete;
75 const ElementGroup*
element_group(mesh::CellKind kind,
unsigned order)
const;
77 std::span<const unsigned>
orders()
const;
81 std::vector<ElementGroup> m_element_groups;
82 const std::vector<unsigned> m_orders;
std::span< const unsigned > orders() const
Returns orders for top-dimensional cells in mesh order.
Definition dg_space.cpp:161
const ElementGroup * element_group(mesh::CellKind kind, unsigned order) const
Finds a group by cell kind and polynomial order.
Definition dg_space.cpp:154
std::span< const ElementGroup > element_groups() const
Returns all element groups.
Definition dg_space.cpp:150
const mesh::Mesh & mesh() const
Returns the source mesh.
Definition dg_space.hpp:66
Stores cells that share a cell kind and polynomial order.
Definition dg_space.hpp:27
std::vector< std::size_t > cell_indices
Source mesh indices for cells in this group.
Definition dg_space.hpp:33
mesh::CellKind kind
Reference-cell kind shared by every cell in the group.
Definition dg_space.hpp:29
xt::xarray< double > nodes
Physical coordinates of the group nodes.
Definition dg_space.hpp:38
unsigned order
Polynomial order shared by every cell in the group.
Definition dg_space.hpp:31