Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::geometry::ParallelMesh< Mesh > Class Template Reference

This class wraps a serial mesh class and adds attributes and methods for parallelization. More...

#include <parallel_mesh.hpp>

Inheritance diagram for vulpes::geometry::ParallelMesh< Mesh >:
[legend]
Collaboration diagram for vulpes::geometry::ParallelMesh< Mesh >:
[legend]

Public Types

using index_t = typename Mesh::index_t
 Alias for the index type of the base mesh class.
using SetType = boost::unordered_flat_set<index_t>
 Alias for an unordered set of indices, optimized for performance.
using GlobalToLocalMap = boost::unordered_flat_map<index_t, index_t>
 Alias for an unordered map from global indices to local indices.
using MeshGenerator = std::function<Mesh()>
 A function object that generates a serial mesh.

Public Member Functions

 ParallelMesh ()=default
 Default constructor.
 ParallelMesh (const MeshGenerator &generator)
 Constructor that generates a mesh on rank 0 and then parallelizes it.
template<class Archive>
void serialize (Archive &ar, const unsigned int)
 Serializes the parallel mesh data.
void initFromRank0 (std::unique_ptr< Mesh > rank0_mesh)
 Parallelizes a mesh that has already been built on rank 0.
constexpr index_t nLocEntity (std::size_t dim) const
 Number of geometric entities of a certain dim (see enum Entity) owned by this proc.
constexpr index_t nOwnedCells () const
 Number of cells owned by this proc.
constexpr index_t nGhostEntity (std::size_t dim) const
 Number of ghost geometric entities of a certain dim (see enum Entity) for this proc.
constexpr index_t nEntity (std::size_t dim) const
 Global number of geometric entities of a certain dim (see enum Entity).
constexpr const auto & localToGlobal (std::size_t d) const
 Local to global map for geometric entities of a certain dim.
constexpr const auto & globalToLocal (std::size_t d) const
 Global to local map for geometric entities of a certain dim.
const auto & getRank0Mesh () const
 Returns a constant reference to the original mesh on rank 0, valid only for root.
const auto & getDualGlobalMap () const
const auto & getCellToFacetGlobalMap () const
const auto & getCellToVtxGlobalMap () const
const auto & getFacetToCellGlobalMap () const
const auto & getFacetToVtxGlobalMap () const
const auto & getVtxToCellGlobalMap () const
const auto & getEdgeToVtxGlobalMap () const
const auto & getCellToEdgeGlobalMap () const
const auto & getEdgeToCellGlobalMap () const
template<std::size_t req_dim>
constexpr auto & getEntityToCellGlobalMap () const
 A template function that returns the global entity-to-cell map for a given dimension.

Static Public Member Functions

static constexpr bool parallel ()
 Returns true if the mesh is parallel, which it is.

Static Public Attributes

static constexpr auto self_dim = Mesh::self_dim
 The dimension of the mesh (e.g., 2 for a 2D mesh, 3 for a 3D mesh).

Protected Member Functions

std::vector< SCOTCH_Num > partitionWithParmetis ()
 Partitions the mesh's dual graph using ParMETIS.
void buildGhostCells (std::vector< index_t > &part)
 Builds the ghost cells for the mesh.
void reconstructPartitioningAndScatterDual (std::vector< index_t > &part)
 Reconstructs the full mesh partitioning on rank 0 and scatters the (strong) dual graph.
void buildGhostCellsFromWeakDual ()
 Determines ghost cells based on the weak dual graph.
void collectGhostCellsInRoot ()
 Gathers ghost cell information on the root process.
void buildLocalCellToEntityMaps ()
 Builds and distributes local cell-to-entity maps.
void buildLocalRenumbering ()
 Establishes local-to-global and global-to-local numbering for all entities.
void initializeMeshTags ()
 Initializes vertex and cell mesh tags.
void sendMeshTags (const std::vector< index_t > &vertex_numbering, int destination)
 Builds and sends local mesh tags from rank 0 to another rank.
void receiveMeshTags ()
 Receives local vertex and cell tags from rank 0.
void buildLocalEntityToCellMaps ()
 Builds and distributes local entity-to-cell maps.
void buildGlobalEntitySize ()
 Gathers and broadcasts the total number of global entities.
void buildWeakDual ()
 Builds the weak dual graph of the local mesh partition.
void buildLocalToLocalMaps ()
 Converts global entity numbering in the maps to local numbering.
void distributePeriodicMetadata ()
 If the serial mesh had periodic topology, broadcasts the periodic ghost-vertex metadata from rank 0 and rebuilds it with local vertex IDs so that Cell2D::getCellVertexesPeriodic works correctly on every rank.
void removeNotOwnedFromLocalEntityToCellMaps ()
 Removes references to non-owned cells from the local entity-to-cell maps.

Protected Attributes

std::unique_ptr< Mesh > m_rank0_mesh
 A unique pointer to the original mesh.
datastructure::CrsMap< index_t, index_t > m_weak_dual
 cell to cell mapping of cells that share at least a vertex
std::array< index_t, Mesh::self_dim+1 > m_global_entity_size
 global number of vertices, edges, faces, cells
std::array< std::vector< index_t >, Mesh::self_dim+1 > m_local_numbering
 local to global numbering of vertices, edges, faces, cells
std::array< GlobalToLocalMap, Mesh::self_dim+1 > m_global_numbering
 global to local numbering of vertices, edges, faces, cells
std::array< index_t, Mesh::self_dim+1 > m_own_enty_size = {0}
 number of [vtxs, edge, facet, cell] owned by this process
std::array< index_t, Mesh::self_dim+1 > m_ghost_enty_size = {0}
 number of ghost [vtxs, edge, facet, cell] owned by this process, they are the last ones in the local numbering
SCOTCH_Num m_edgecut = -1
 number of edge cuts ParMetis makes
std::vector< std::vector< index_t > > m_all_own_and_ghost_cell_id
 global mesh partitioning, only rank 0 knows it
std::vector< index_t > m_all_own_size
 number of owned cells for each proc, only rank 0 knows it
std::vector< index_t > m_all_ghost_size
 number of ghost cells for each proc, only rank 0 knows it
Mesh::DualMap m_dual_graph_glob
Mesh::CellToFacetMap m_cell_to_facet_glob
Mesh::CellToVtxMap m_cell_to_vtx_glob
Mesh::FacetToCellMap m_facet_to_cell_glob
Mesh::FacetToVtxMap m_facet_to_vtx_glob
Mesh::VtxToCellMap m_vtx_to_cell_glob
Mesh::EdgeToVtxMap m_edge_to_vtx_glob
Mesh::CellToEdgeMap m_cell_to_edge_glob
Mesh::EdgeToCellMap m_edge_to_cell_glob

Friends

bool operator== (const ParallelMesh &lhs, const ParallelMesh &rhs)
 Compares two ParallelMesh objects for equality.

Detailed Description

template<typename Mesh>
class vulpes::geometry::ParallelMesh< Mesh >

This class wraps a serial mesh class and adds attributes and methods for parallelization.

It enables a mesh, initially created and owned by a single process (rank 0), to be distributed among multiple processes for parallel computation. The parallelization process involves partitioning the mesh and creating local copies for each process, including "ghost" cells that are adjacent to the owned cells but belong to other processes.

Key features:

  • A mesh can be built entirely on a single process (rank 0) and then parallelized.
  • The mesh partitions the entity and keeps a local-to-global and global-to-local maps for each entity
  • The mesh's entity maps (e.g., cell-to-vertex, facet-to-cell) are stored as local-to-local maps. This are the "default" maps.
  • Entity mappings are also available as local-to-global. These are stored as copies, do not require to pass by the entity mappings. Are available with methods called "Global".
  • Mesh tags attached to vertices and cells are distributed in local numbering, including owned and ghost entities. Tags attached to intermediate-dimensional entities (edges/facets) are currently not distributed.

Member Typedef Documentation

◆ GlobalToLocalMap

template<typename Mesh>
using vulpes::geometry::ParallelMesh< Mesh >::GlobalToLocalMap = boost::unordered_flat_map<index_t, index_t>

Alias for an unordered map from global indices to local indices.

◆ index_t

template<typename Mesh>
using vulpes::geometry::ParallelMesh< Mesh >::index_t = typename Mesh::index_t

Alias for the index type of the base mesh class.

◆ MeshGenerator

template<typename Mesh>
using vulpes::geometry::ParallelMesh< Mesh >::MeshGenerator = std::function<Mesh()>

A function object that generates a serial mesh.

◆ SetType

template<typename Mesh>
using vulpes::geometry::ParallelMesh< Mesh >::SetType = boost::unordered_flat_set<index_t>

Alias for an unordered set of indices, optimized for performance.

Constructor & Destructor Documentation

◆ ParallelMesh() [1/2]

template<typename Mesh>
vulpes::geometry::ParallelMesh< Mesh >::ParallelMesh ( )
default

Default constructor.

◆ ParallelMesh() [2/2]

template<typename Mesh>
vulpes::geometry::ParallelMesh< Mesh >::ParallelMesh ( const MeshGenerator & generator)
inlineexplicit

Constructor that generates a mesh on rank 0 and then parallelizes it.

Parameters
generatorA function that returns a Mesh object. This function is called only on rank 0.

Member Function Documentation

◆ buildGhostCells()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildGhostCells ( std::vector< index_t > & part)
protected

Builds the ghost cells for the mesh.

It builds a "weak dual graph" (which includes cells that are connected by at least one vertex, not just a face) to correctly identify all ghost cells that might be needed for computations by each proc. It collects this information on the root process.

Parameters
partA vector representing the cell partition for the current process.

◆ buildGhostCellsFromWeakDual()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildGhostCellsFromWeakDual ( )
protected

Determines ghost cells based on the weak dual graph.

One of the steps of buildGhostCells. It iterates through the weak dual graph to find neighboring cells that are not owned by the current process. These non-owned neighbors are added to the list of ghost cells.

◆ buildGlobalEntitySize()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildGlobalEntitySize ( )
protected

Gathers and broadcasts the total number of global entities.

This method has rank 0 determine the total number of vertices, edges, faces, and cells in the global mesh and broadcasts this information to all other processes.

◆ buildLocalCellToEntityMaps()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildLocalCellToEntityMaps ( )
protected

Builds and distributes local cell-to-entity maps.

This method creates local copies of the various cell-to-entity maps (CellToVtxMap, CellToFacetMap, etc.). Rank 0 slices the global maps based on the owned and ghost cells for each process and then sends these local maps to the appropriate processes.

◆ buildLocalEntityToCellMaps()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildLocalEntityToCellMaps ( )
protected

Builds and distributes local entity-to-cell maps.

This method does the inverse of buildLocalCellToEntityMaps. It creates and distributes local versions of maps like VtxToCellMap, FacetToCellMap, etc.

◆ buildLocalRenumbering()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildLocalRenumbering ( )
protected

Establishes local-to-global and global-to-local numbering for all entities.

It assigns a unique local index to each vertex, edge, face, and cell on the current process and maps it to its global index. This allows for efficient lookups between local and global numbering schemes.

◆ buildLocalToLocalMaps()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildLocalToLocalMaps ( )
protected

Converts global entity numbering in the maps to local numbering.

This method uses the m_global_numbering map to convert all global indices within the local mesh's connectivity maps (e.g., m_cell_to_vtx) to their corresponding local indices. This makes the maps consistent with the local numbering scheme.

◆ buildWeakDual()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::buildWeakDual ( )
protected

Builds the weak dual graph of the local mesh partition.

A weak dual graph connects cells that share at least one vertex (unlike a standard dual graph which connects cells that share a face). This is needed to identify all potential ghost cells that might be required by a process, even if they aren't directly adjacent along a face.

◆ collectGhostCellsInRoot()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::collectGhostCellsInRoot ( )
protected

Gathers ghost cell information on the root process.

Each process sends its list of ghost cells to rank 0, which collects and stores this global information.

◆ distributePeriodicMetadata()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::distributePeriodicMetadata ( )
protected

If the serial mesh had periodic topology, broadcasts the periodic ghost-vertex metadata from rank 0 and rebuilds it with local vertex IDs so that Cell2D::getCellVertexesPeriodic works correctly on every rank.

◆ getCellToEdgeGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getCellToEdgeGlobalMap ( ) const
inline

◆ getCellToFacetGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getCellToFacetGlobalMap ( ) const
inline

◆ getCellToVtxGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getCellToVtxGlobalMap ( ) const
inline

◆ getDualGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getDualGlobalMap ( ) const
inline

◆ getEdgeToCellGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getEdgeToCellGlobalMap ( ) const
inline

◆ getEdgeToVtxGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getEdgeToVtxGlobalMap ( ) const
inline

◆ getEntityToCellGlobalMap()

template<typename Mesh>
template<std::size_t req_dim>
auto & vulpes::geometry::ParallelMesh< Mesh >::getEntityToCellGlobalMap ( ) const
inlineconstexpr

A template function that returns the global entity-to-cell map for a given dimension.

Template Parameters
req_dimThe requested dimension (0 for vertex, 1 for edge, 2 for face).
Returns
A constant reference to the corresponding global map.

◆ getFacetToCellGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getFacetToCellGlobalMap ( ) const
inline

◆ getFacetToVtxGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getFacetToVtxGlobalMap ( ) const
inline

◆ getRank0Mesh()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getRank0Mesh ( ) const
inline

Returns a constant reference to the original mesh on rank 0, valid only for root.

Returns
A constant reference to the m_rank0_mesh.

◆ getVtxToCellGlobalMap()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::getVtxToCellGlobalMap ( ) const
inline

◆ globalToLocal()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::globalToLocal ( std::size_t d) const
inlineconstexpr

Global to local map for geometric entities of a certain dim.

◆ initFromRank0()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::initFromRank0 ( std::unique_ptr< Mesh > rank0_mesh)
inline

Parallelizes a mesh that has already been built on rank 0.

This is the core method for distributing the mesh. It takes a unique pointer to a Mesh object (which is only valid on rank 0) and partitions it using ParMETIS. It then distributes the partitioned data to all processes, builds the ghost cells (which are neighbors of the owned cells but belong to other processes), and constructs the local-to-global and global-to-local maps for all entities (vertices, edges, faces, and cells).

Parameters
rank0_meshA unique pointer to the mesh owned by rank 0. The ownership is moved to this class.

◆ initializeMeshTags()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::initializeMeshTags ( )
protected

Initializes vertex and cell mesh tags.

Broadcasts tag names and builds rank 0's local tags. Must be called collectively by all ranks.

◆ localToGlobal()

template<typename Mesh>
const auto & vulpes::geometry::ParallelMesh< Mesh >::localToGlobal ( std::size_t d) const
inlineconstexpr

Local to global map for geometric entities of a certain dim.

◆ nEntity()

template<typename Mesh>
index_t vulpes::geometry::ParallelMesh< Mesh >::nEntity ( std::size_t dim) const
inlineconstexpr

Global number of geometric entities of a certain dim (see enum Entity).

◆ nGhostEntity()

template<typename Mesh>
index_t vulpes::geometry::ParallelMesh< Mesh >::nGhostEntity ( std::size_t dim) const
inlineconstexpr

Number of ghost geometric entities of a certain dim (see enum Entity) for this proc.

◆ nLocEntity()

template<typename Mesh>
index_t vulpes::geometry::ParallelMesh< Mesh >::nLocEntity ( std::size_t dim) const
inlineconstexpr

Number of geometric entities of a certain dim (see enum Entity) owned by this proc.

◆ nOwnedCells()

template<typename Mesh>
index_t vulpes::geometry::ParallelMesh< Mesh >::nOwnedCells ( ) const
inlineconstexpr

Number of cells owned by this proc.

◆ parallel()

template<typename Mesh>
constexpr bool vulpes::geometry::ParallelMesh< Mesh >::parallel ( )
inlinestaticconstexpr

Returns true if the mesh is parallel, which it is.

◆ partitionWithParmetis()

template<typename Mesh>
std::vector< SCOTCH_Num > vulpes::geometry::ParallelMesh< Mesh >::partitionWithParmetis ( )
protected

Partitions the mesh's dual graph using ParMETIS.

This method uses the ParMETIS library to partition the dual graph of the mesh, where each node represents a cell. It distributes the dual graph data to all processes and calls ParMETIS_V3_PartKway to perform the partitioning. Each process receives its portion of the partitioning result, which indicates which cells it should own.

Returns
A vector of SCOTCH_Num (ParMETIS's index type) containing the partition assignments for the local cells.

◆ receiveMeshTags()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::receiveMeshTags ( )
protected

Receives local vertex and cell tags from rank 0.

◆ reconstructPartitioningAndScatterDual()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::reconstructPartitioningAndScatterDual ( std::vector< index_t > & part)
protected

Reconstructs the full mesh partitioning on rank 0 and scatters the (strong) dual graph.

Rank 0 collects the partition results from all other processes, reconstructs the global partitioning, and reorders it to minimize communication overhead. It then slices the global dual graph based on the new partitioning and scatters the relevant parts to each process.

Parameters
partA vector of partition assignments for the local cells.

◆ removeNotOwnedFromLocalEntityToCellMaps()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::removeNotOwnedFromLocalEntityToCellMaps ( )
protected

Removes references to non-owned cells from the local entity-to-cell maps.

This method "cleans up" the local entity-to-cell maps by removing any references to cells that are not part of the process's owned or ghost cell set.

◆ sendMeshTags()

template<typename Mesh>
void vulpes::geometry::ParallelMesh< Mesh >::sendMeshTags ( const std::vector< index_t > & vertex_numbering,
int destination )
protected

Builds and sends local mesh tags from rank 0 to another rank.

Parameters
vertex_numberingLocal-to-global vertex numbering of the destination.
destinationDestination MPI rank.

◆ serialize()

template<typename Mesh>
template<class Archive>
void vulpes::geometry::ParallelMesh< Mesh >::serialize ( Archive & ar,
const unsigned int  )
inline

Serializes the parallel mesh data.

This method serializes the base mesh data and all the additional data structures required for parallelization, such as the weak dual graph and the various numbering maps.

Template Parameters
ArchiveThe archive type (e.g., from Boost.Serialization).
Parameters
arThe archive to serialize to or from.

◆ operator==

template<typename Mesh>
bool operator== ( const ParallelMesh< Mesh > & lhs,
const ParallelMesh< Mesh > & rhs )
friend

Compares two ParallelMesh objects for equality.

Parameters
lhsThe left-hand side parallel mesh.
rhsThe right-hand side parallel mesh.
Returns
True if the meshes and all their parallel data structures are identical, false otherwise.

Member Data Documentation

◆ m_all_ghost_size

template<typename Mesh>
std::vector<index_t> vulpes::geometry::ParallelMesh< Mesh >::m_all_ghost_size
protected

number of ghost cells for each proc, only rank 0 knows it

◆ m_all_own_and_ghost_cell_id

template<typename Mesh>
std::vector<std::vector<index_t> > vulpes::geometry::ParallelMesh< Mesh >::m_all_own_and_ghost_cell_id
protected

global mesh partitioning, only rank 0 knows it

In each vector the last m_all_ghost_size indices indicate the ghost cells, the other indicate the owned cells

◆ m_all_own_size

template<typename Mesh>
std::vector<index_t> vulpes::geometry::ParallelMesh< Mesh >::m_all_own_size
protected

number of owned cells for each proc, only rank 0 knows it

◆ m_cell_to_edge_glob

template<typename Mesh>
Mesh::CellToEdgeMap vulpes::geometry::ParallelMesh< Mesh >::m_cell_to_edge_glob
protected

◆ m_cell_to_facet_glob

template<typename Mesh>
Mesh::CellToFacetMap vulpes::geometry::ParallelMesh< Mesh >::m_cell_to_facet_glob
protected

◆ m_cell_to_vtx_glob

template<typename Mesh>
Mesh::CellToVtxMap vulpes::geometry::ParallelMesh< Mesh >::m_cell_to_vtx_glob
protected

◆ m_dual_graph_glob

template<typename Mesh>
Mesh::DualMap vulpes::geometry::ParallelMesh< Mesh >::m_dual_graph_glob
protected

◆ m_edge_to_cell_glob

template<typename Mesh>
Mesh::EdgeToCellMap vulpes::geometry::ParallelMesh< Mesh >::m_edge_to_cell_glob
protected

◆ m_edge_to_vtx_glob

template<typename Mesh>
Mesh::EdgeToVtxMap vulpes::geometry::ParallelMesh< Mesh >::m_edge_to_vtx_glob
protected

◆ m_edgecut

template<typename Mesh>
SCOTCH_Num vulpes::geometry::ParallelMesh< Mesh >::m_edgecut = -1
protected

number of edge cuts ParMetis makes

◆ m_facet_to_cell_glob

template<typename Mesh>
Mesh::FacetToCellMap vulpes::geometry::ParallelMesh< Mesh >::m_facet_to_cell_glob
protected

◆ m_facet_to_vtx_glob

template<typename Mesh>
Mesh::FacetToVtxMap vulpes::geometry::ParallelMesh< Mesh >::m_facet_to_vtx_glob
protected

◆ m_ghost_enty_size

template<typename Mesh>
std::array<index_t, Mesh::self_dim + 1> vulpes::geometry::ParallelMesh< Mesh >::m_ghost_enty_size = {0}
protected

number of ghost [vtxs, edge, facet, cell] owned by this process, they are the last ones in the local numbering

◆ m_global_entity_size

template<typename Mesh>
std::array<index_t, Mesh::self_dim + 1> vulpes::geometry::ParallelMesh< Mesh >::m_global_entity_size
protected

global number of vertices, edges, faces, cells

◆ m_global_numbering

template<typename Mesh>
std::array<GlobalToLocalMap, Mesh::self_dim + 1> vulpes::geometry::ParallelMesh< Mesh >::m_global_numbering
protected

global to local numbering of vertices, edges, faces, cells

Contains also ghost cells

◆ m_local_numbering

template<typename Mesh>
std::array<std::vector<index_t>, Mesh::self_dim + 1> vulpes::geometry::ParallelMesh< Mesh >::m_local_numbering
protected

local to global numbering of vertices, edges, faces, cells

Contains also ghost cells

◆ m_own_enty_size

template<typename Mesh>
std::array<index_t, Mesh::self_dim + 1> vulpes::geometry::ParallelMesh< Mesh >::m_own_enty_size = {0}
protected

number of [vtxs, edge, facet, cell] owned by this process

◆ m_rank0_mesh

template<typename Mesh>
std::unique_ptr<Mesh> vulpes::geometry::ParallelMesh< Mesh >::m_rank0_mesh
protected

A unique pointer to the original mesh.

This is only valid on rank 0 after the parallelization process has begun.

◆ m_vtx_to_cell_glob

template<typename Mesh>
Mesh::VtxToCellMap vulpes::geometry::ParallelMesh< Mesh >::m_vtx_to_cell_glob
protected

◆ m_weak_dual

template<typename Mesh>
datastructure::CrsMap<index_t, index_t> vulpes::geometry::ParallelMesh< Mesh >::m_weak_dual
protected

cell to cell mapping of cells that share at least a vertex

◆ self_dim

template<typename Mesh>
auto vulpes::geometry::ParallelMesh< Mesh >::self_dim = Mesh::self_dim
inlinestaticconstexpr

The dimension of the mesh (e.g., 2 for a 2D mesh, 3 for a 3D mesh).


The documentation for this class was generated from the following file: