14#include "oiseau/mesh/mesh.hpp"
28 static constexpr std::size_t
no_neighbor = std::numeric_limits<std::size_t>::max();
69 std::span<const FaceConnection>
faces(std::size_t mesh_cell_index)
const;
73 std::vector<std::vector<FaceConnection>> m_faces;
std::span< const FaceConnection > faces(std::size_t mesh_cell_index) const
Returns the face connections for a mesh cell in local face order.
Definition dg_connectivity.cpp:121
static constexpr std::size_t no_neighbor
Sentinel for missing neighbor cell and face indices.
Definition dg_connectivity.hpp:28
const mesh::Mesh & mesh() const
Definition dg_connectivity.hpp:61
DGConnectivity(mesh::Mesh &mesh)
Calculates mesh adjacency and builds DG face connections.
Definition dg_connectivity.cpp:75
Connection from one local face to its neighbor.
Definition dg_connectivity.hpp:31
std::size_t neighbor_cell
Mesh index of the neighboring cell, or no_neighbor on a boundary.
Definition dg_connectivity.hpp:33
bool is_boundary() const
Definition dg_connectivity.hpp:44
std::size_t neighbor_face
Local face index on the neighboring cell, or no_neighbor on a boundary.
Definition dg_connectivity.hpp:35
std::vector< std::size_t > vertex_permutation
Maps local face vertex positions to positions on the neighboring face.
Definition dg_connectivity.hpp:41