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

Compute and distribute the DoFs and sparsity pattern associated with a mesh and a certain finite element space. More...

#include <dof_handler.hpp>

Collaboration diagram for vulpes::dofs::DofHandler< MeshType >:
[legend]

Public Types

using Mesh = MeshType
using index_t = typename MeshType::index_t

Public Member Functions

 DofHandler (const MeshType &mesh)
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void distributeDofs (const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > &fe_space)
 Distribute the DoFs (that is create a cell to dof and dof to cell maps) and create a sparsity pattern for this finite element space. In parallel it also applies a preliminary renumbering to minimize intra-proc communications.
void applyRenumbering (const RenumberingFunctor< index_t > &renumbering_func, bool reversed)
 Apply a renumbering to the DoFs to minimize the bandwidth.
std::size_t ndofs () const
 Get the total number of dofs for this MPI proc.
std::size_t ndofsGlobal () const
 Get the total number of dofs.
const auto & dofOffset () const
 Get the dofs offset of each proc.
const auto & getSparsityPattern () const
 Get the CrsMap of the sparsity pattern.
const auto & getCellToDof () const
 Get the cell to dof map.
const auto & getCellToCellDof () const
const auto & getCurrToRefNumbering () const
const auto & getRefToCurrNumbering () const
const auto & getGlobToLocNumbering () const
const auto & getLocToGlobNumbering () const
bool hasRenumbering () const
const std::vector< index_t > & getGhostDofs () const
 Global dof indices of dofs living on this rank's ghost cells, i.e. dofs owned by another rank but needed locally for face terms (e.g. by la::Vector::createGhosted()). Deduplicated, in a stable order fixed by the ghost cells' local ids. Empty for a serial mesh.
index_t ghostDofLocalIndex (index_t dof_id) const
 Position of a ghost dof's global id within getGhostDofs(), i.e. its offset within a Vector::createGhosted() vector's ghost padding.
index_t nOwnedDofs () const
 Number of dofs owned by this rank (all of them, for a serial mesh).
index_t localGhostedIndex (index_t dof_id) const
 Local index, within a Vector built by la::Vector::createGhosted() from this DofHandler, of the given global dof id – whichever of owned or ghost it is. Owned dofs map to [0, nOwnedDofs()); this rank's ghost dofs map to [nOwnedDofs(), nOwnedDofs() + getGhostDofs().size()), in getGhostDofs() order. This is the single accessor consumer code should use instead of hand-rolling ownership-range arithmetic (see the note on la::Vector::toLocalGhostedEigenVector()).
void finalize ()
void renumberMpiSubdomainWise ()
 Renumber the DoFs in order to minimize the MPI communications.
auto gatherSparsityPatternRank0 () const
 Compute the global sparsity pattern scattered among MPI procs.
template<bool DofInteractionDistance>
std::pair< typename MeshType::index_t, typename MeshType::index_t > computeSparsityForDof (typename MeshType::index_t dof_id, typename MeshType::index_t *buffer1, typename MeshType::index_t *buffer2)

Static Public Attributes

static constexpr bool parallel = MeshType::parallel()

Protected Types

using MappingType

Protected Member Functions

template<typename FeSpace>
void computeSparsityPattern ()
 Compute the sparsity pattern of the global matrix.
template<bool DofInteractionDistance>
std::pair< index_t, index_t > computeSparsityForDof (index_t dof_id, index_t *buffer1, index_t *buffer2)
 Compute the sparsity pattern of the global matrix for a certain dof.
template<std::size_t SubentityDim, std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void distributeSubentityDofs (const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > &fe_space, auto &dof_to_cell)
 Distribute the dofs associated to a certain geometric entity.
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void distributeAllSubentityDofs (const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > &fe_space, auto &dof_to_cell)
 Distribute the dofs associated to a all geometric entities.
void invertDofToCellMappingAndCompress (auto &dof_to_cell)
 Invert the dof to cell mapping.
void buildGhostDofs ()
 Builds m_ghost_dofs/m_ghost_dof_to_local from this rank's ghost cells (mesh-level) and m_cell_to_dof (already in global numbering). Called once, from finalize(), after m_cell_to_dof's global-numbering conversion. No-op for a serial mesh.
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void computeNumDofs (const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > &fe_space)
 Computes the total number of DoFs.
void sortSharedDofs ()
 Sorts shared dofs following global (geometric) enumeration.
void computeOwnedCellDofsAndBndDofs ()
 Compute owned cell dofs and boundary dofs.
auto computeOwnedSparsityPattern ()
 Compute the slice of the sparsity pattern that belongs to this proc.
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void buildCellToCellDof (const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > &fe_space)
 Build the local enumeration of the basis functions for each cell.

Protected Attributes

bool m_has_renumbering = false
const MeshType & m_mesh
datastructure::CrsMap< index_t, index_t > m_dof_to_cell
datastructure::CrsMap< index_t, index_t > m_cell_to_dof
datastructure::CrsMap< index_t, index_t > m_cell_to_cell_dof
datastructure::CrsMap< index_t, index_t > m_sparsity_pattern
std::array< index_t, MeshType::self_dim+2 > m_glob_cum_ndof_per_entity = {0}
std::vector< index_t > m_old_to_new_numbering
MappingType m_new_to_old_numbering
std::array< index_t, MeshType::self_dim+2 > m_loc_cum_ndof_per_entity = {0}
std::vector< index_t > m_local_to_global_dof
boost::unordered_flat_map< index_t, index_t > m_global_to_local_dof
std::vector< index_t > m_owned_dofs
std::vector< index_t > m_shared_dofs
std::vector< index_t > m_local_owned_dofs
std::vector< index_t > m_local_shared_dofs
std::size_t m_dof_offset = 0
std::vector< std::size_t > m_all_dof_offset
std::vector< index_t > m_owned_cells_dofs
std::size_t m_owning_matrix_rows = 0
std::vector< index_t > m_partition_bnd_dofs
std::vector< index_t > m_ghost_dofs
boost::unordered_flat_map< index_t, index_t > m_ghost_dof_to_local
std::vector< index_t > m_all_old_to_new_numbering
std::vector< std::vector< index_t > > m_all_shared_dof
std::vector< std::vector< index_t > > m_all_partition_bnd_dofs

Detailed Description

template<typename MeshType>
class vulpes::dofs::DofHandler< MeshType >

Compute and distribute the DoFs and sparsity pattern associated with a mesh and a certain finite element space.

This class implements the tools to distribute and compute the DoFs and sparsity pattern of a mesh and finite element space both in serial and in parallel. The class distinguishes between the two cases by checking the boolean value of MeshType::parallel(). The DofHandler also manages the renumbering of the DoFs to minimize the bandwidth of the sparsity pattern (to enhance cache locality and reduce the condition number of the final matrix). If the mesh is parallel the class automatically applies a preliminary renumbering in order to minimize intra-process communications at assembly time.

Note
: before using the class call the method finalize to apply the cell_to_cell_dof permutation to each of the rows in cell_to_dof. This is not automatically done since the user may want to apply a renumbering to the dofs.

Member Typedef Documentation

◆ index_t

template<typename MeshType>
using vulpes::dofs::DofHandler< MeshType >::index_t = typename MeshType::index_t

◆ MappingType

template<typename MeshType>
using vulpes::dofs::DofHandler< MeshType >::MappingType
protected
Initial value:
std::conditional_t<
MeshType::parallel(),
boost::unordered_flat_map<index_t, index_t>,
std::vector<index_t>>

Define the type of the new to old map. In parallel, to save memory, the new to old numbering is implemented differently

◆ Mesh

template<typename MeshType>
using vulpes::dofs::DofHandler< MeshType >::Mesh = MeshType

Constructor & Destructor Documentation

◆ DofHandler()

template<typename MeshType>
vulpes::dofs::DofHandler< MeshType >::DofHandler ( const MeshType & mesh)
inlineexplicit

Member Function Documentation

◆ applyRenumbering()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::applyRenumbering ( const RenumberingFunctor< index_t > & renumbering_func,
bool reversed )

Apply a renumbering to the DoFs to minimize the bandwidth.

In parallel it is applied to all the owned dofs by each proc.

Note
It updates the new-to-old and old-to-new dof maps but not the sparsity pattern. To conclude the (possible) composition of renumberings you should call finalize().

◆ buildCellToCellDof()

template<typename MeshType>
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void vulpes::dofs::DofHandler< MeshType >::buildCellToCellDof ( const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > & fe_space)
protected

Build the local enumeration of the basis functions for each cell.

◆ buildGhostDofs()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::buildGhostDofs ( )
protected

Builds m_ghost_dofs/m_ghost_dof_to_local from this rank's ghost cells (mesh-level) and m_cell_to_dof (already in global numbering). Called once, from finalize(), after m_cell_to_dof's global-numbering conversion. No-op for a serial mesh.

◆ computeNumDofs()

template<typename MeshType>
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void vulpes::dofs::DofHandler< MeshType >::computeNumDofs ( const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > & fe_space)
protected

Computes the total number of DoFs.

◆ computeOwnedCellDofsAndBndDofs()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::computeOwnedCellDofsAndBndDofs ( )
protected

Compute owned cell dofs and boundary dofs.

Find which are the DoFs that belong to cell that are owned by this proc. Moreover, find which are the DoFs that lie on the boundary on the partition, that is, DoFs that belong both to ghost cells and owned cells.

Namely, it fills m_partition_bnd_dofs and leaves it sorted

This make sense only in parallel.

◆ computeOwnedSparsityPattern()

template<typename MeshType>
auto vulpes::dofs::DofHandler< MeshType >::computeOwnedSparsityPattern ( )
protected

Compute the slice of the sparsity pattern that belongs to this proc.

This make sense only in parallel. The sparsity pattern must be available.

◆ computeSparsityForDof() [1/2]

template<typename MeshType>
template<bool DofInteractionDistance>
std::pair< index_t, index_t > vulpes::dofs::DofHandler< MeshType >::computeSparsityForDof ( index_t dof_id,
index_t * buffer1,
index_t * buffer2 )
protected

Compute the sparsity pattern of the global matrix for a certain dof.

The function needs a pair of buffers where to put temporary results of the computations.

Template Parameters
thecell distance (in dual sense) with which dof interacts, that is they have non zero integrals. E.g. 0 for continuous elements, 1 for DG
Returns
a pair containing on which of the two buffers there is the sparsity pattern of the dof (0 for buffer1, 1 for buffer2) and the size of the sparsity pattern

◆ computeSparsityForDof() [2/2]

template<typename MeshType>
template<bool DofInteractionDistance>
std::pair< typename MeshType::index_t, typename MeshType::index_t > vulpes::dofs::DofHandler< MeshType >::computeSparsityForDof ( typename MeshType::index_t dof_id,
typename MeshType::index_t * buffer1,
typename MeshType::index_t * buffer2 )

◆ computeSparsityPattern()

template<typename MeshType>
template<typename FeSpace>
void vulpes::dofs::DofHandler< MeshType >::computeSparsityPattern ( )
protected

Compute the sparsity pattern of the global matrix.

The spartisity pattern is a local dof to local dof map created by composing the dof-to-cell, global-to-local-cell, and cell-to-dof maps

◆ distributeAllSubentityDofs()

template<typename MeshType>
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void vulpes::dofs::DofHandler< MeshType >::distributeAllSubentityDofs ( const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > & fe_space,
auto & dof_to_cell )
protected

Distribute the dofs associated to a all geometric entities.

It fills the uncompressed crs map passed as second input. The map links the dof (in local enumeration) to the global cell id

In parallel, it also builds:

  • m_local_to_global_dof
  • m_global_to_local_dof
  • m_owned_dofs
  • m_local_owned_dofs
  • m_shared_dofs
  • m_local_shared_dofs
Parameters
fe_spacethe finite element space that defines the cell DoFs
dof_to_cellthe CrsMapUncompressed to update

◆ distributeDofs()

template<typename MeshType>
template<std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void vulpes::dofs::DofHandler< MeshType >::distributeDofs ( const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > & fe_space)

Distribute the DoFs (that is create a cell to dof and dof to cell maps) and create a sparsity pattern for this finite element space. In parallel it also applies a preliminary renumbering to minimize intra-proc communications.

◆ distributeSubentityDofs()

template<typename MeshType>
template<std::size_t SubentityDim, std::size_t Dim, typename FloatType, typename DofPolicy, typename FeSpace>
void vulpes::dofs::DofHandler< MeshType >::distributeSubentityDofs ( const fe::FeSpaceBase< Dim, FloatType, DofPolicy, FeSpace > & fe_space,
auto & dof_to_cell )
protected

Distribute the dofs associated to a certain geometric entity.

Template Parameters
SubentityDimthe dimension of the entity we want to distribute
  • 0: Vertices
  • 1: Edges
  • 2: Faces
  • 3: Volumes SubentityDim must be smaller or equal to Dim

It fills the uncompressed crs map passed as second input. The map links the dof (in local enumeration) to the global cell id.

In parallel, it also builds:

  • m_local_to_global_dof
  • m_global_to_local_dof
  • m_owned_dofs
  • m_local_owned_dofs
  • m_shared_dofs
  • m_local_shared_dofs
Parameters
fe_spacethe finite element space that defines the cell DoFs
dof_to_cellthe CrsMapUncompressed to update

◆ dofOffset()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::dofOffset ( ) const
inline

Get the dofs offset of each proc.

◆ finalize()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::finalize ( )

◆ gatherSparsityPatternRank0()

template<typename MeshType>
auto vulpes::dofs::DofHandler< MeshType >::gatherSparsityPatternRank0 ( ) const

Compute the global sparsity pattern scattered among MPI procs.

Note
This method is very expensive and its main use is debugging

◆ getCellToCellDof()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getCellToCellDof ( ) const
inline

◆ getCellToDof()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getCellToDof ( ) const
inline

Get the cell to dof map.

The cell is in local index, the dof in global index. Valid after finalize(), which applies getCellToCellDof() and any renumbering.

◆ getCurrToRefNumbering()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getCurrToRefNumbering ( ) const
inline

◆ getGhostDofs()

template<typename MeshType>
const std::vector< index_t > & vulpes::dofs::DofHandler< MeshType >::getGhostDofs ( ) const
inline

Global dof indices of dofs living on this rank's ghost cells, i.e. dofs owned by another rank but needed locally for face terms (e.g. by la::Vector::createGhosted()). Deduplicated, in a stable order fixed by the ghost cells' local ids. Empty for a serial mesh.

Note
Only valid after finalize() (and after renumberMpiSubdomainWise(), if used) – matches the same precondition as getCellToDof(), which this is built from.

◆ getGlobToLocNumbering()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getGlobToLocNumbering ( ) const
inline

◆ getLocToGlobNumbering()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getLocToGlobNumbering ( ) const
inline

◆ getRefToCurrNumbering()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getRefToCurrNumbering ( ) const
inline

◆ getSparsityPattern()

template<typename MeshType>
const auto & vulpes::dofs::DofHandler< MeshType >::getSparsityPattern ( ) const
inline

Get the CrsMap of the sparsity pattern.

◆ ghostDofLocalIndex()

template<typename MeshType>
index_t vulpes::dofs::DofHandler< MeshType >::ghostDofLocalIndex ( index_t dof_id) const
inline

Position of a ghost dof's global id within getGhostDofs(), i.e. its offset within a Vector::createGhosted() vector's ghost padding.

Note
Throws std::out_of_range if dof_id is not one of this rank's ghost dofs (a member of getGhostDofs()) – unconditionally, matching the existing m_global_to_local_dof.at(...) convention elsewhere in this class, not gated behind NDEBUG the way an assert() would be. A caller passing a bad dof_id here is exactly the class of error (silently reading another rank's memory) this class exists to make loud instead.

◆ hasRenumbering()

template<typename MeshType>
bool vulpes::dofs::DofHandler< MeshType >::hasRenumbering ( ) const
inline

◆ invertDofToCellMappingAndCompress()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::invertDofToCellMappingAndCompress ( auto & dof_to_cell)
protected

Invert the dof to cell mapping.

The forward and inverted map are compressed and saved as the attributes m_dof_to_cell and m_cell_to_dof. The latter, during inversion, transforms the global cell id to local cell id to have dense rows.

Note
it also sort the dofs to make the computations of the sparsity pattern quicker

◆ localGhostedIndex()

template<typename MeshType>
index_t vulpes::dofs::DofHandler< MeshType >::localGhostedIndex ( index_t dof_id) const
inline

Local index, within a Vector built by la::Vector::createGhosted() from this DofHandler, of the given global dof id – whichever of owned or ghost it is. Owned dofs map to [0, nOwnedDofs()); this rank's ghost dofs map to [nOwnedDofs(), nOwnedDofs() + getGhostDofs().size()), in getGhostDofs() order. This is the single accessor consumer code should use instead of hand-rolling ownership-range arithmetic (see the note on la::Vector::toLocalGhostedEigenVector()).

Note
dof_id must be owned by this rank or one of its ghost dofs.

◆ ndofs()

template<typename MeshType>
std::size_t vulpes::dofs::DofHandler< MeshType >::ndofs ( ) const
inline

Get the total number of dofs for this MPI proc.

◆ ndofsGlobal()

template<typename MeshType>
std::size_t vulpes::dofs::DofHandler< MeshType >::ndofsGlobal ( ) const
inline

Get the total number of dofs.

◆ nOwnedDofs()

template<typename MeshType>
index_t vulpes::dofs::DofHandler< MeshType >::nOwnedDofs ( ) const
inline

Number of dofs owned by this rank (all of them, for a serial mesh).

◆ renumberMpiSubdomainWise()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::renumberMpiSubdomainWise ( )

Renumber the DoFs in order to minimize the MPI communications.

The idea here is that we want to enumerate the DoFs that we own so that they are near to the rows of the sparse matrix that we own.

◆ sortSharedDofs()

template<typename MeshType>
void vulpes::dofs::DofHandler< MeshType >::sortSharedDofs ( )
protected

Sorts shared dofs following global (geometric) enumeration.

It sorts shared dofs in both local and global enumeration following the global (geometric) enumeration. This make sense only in parallel.

Member Data Documentation

◆ m_all_dof_offset

template<typename MeshType>
std::vector<std::size_t> vulpes::dofs::DofHandler< MeshType >::m_all_dof_offset
protected

global dof offset from which this proc can start numbering the owned dofs in the mpi renumbering for each processor

◆ m_all_old_to_new_numbering

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_all_old_to_new_numbering
protected

the global m_old_to_new_numbering map, owned only by MPI proc 0

◆ m_all_partition_bnd_dofs

template<typename MeshType>
std::vector<std::vector<index_t> > vulpes::dofs::DofHandler< MeshType >::m_all_partition_bnd_dofs
protected

list of m_partition_bnd_dofs for each proc, owned only by MPI proc 0

◆ m_all_shared_dof

template<typename MeshType>
std::vector<std::vector<index_t> > vulpes::dofs::DofHandler< MeshType >::m_all_shared_dof
protected

list of all shared dofs in global enumeration, owned only by MPI proc 0

◆ m_cell_to_cell_dof

template<typename MeshType>
datastructure::CrsMap<index_t, index_t> vulpes::dofs::DofHandler< MeshType >::m_cell_to_cell_dof
protected

Map each (local) cell to the dofs inside that cell, in cell enumeration

◆ m_cell_to_dof

template<typename MeshType>
datastructure::CrsMap<index_t, index_t> vulpes::dofs::DofHandler< MeshType >::m_cell_to_dof
protected

Map each (local) cell to the dofs that are inside it

The dofs are first computed in local enumeration and are transformed into global enumeration during the call to finalize()

◆ m_dof_offset

template<typename MeshType>
std::size_t vulpes::dofs::DofHandler< MeshType >::m_dof_offset = 0
protected

global dof offset from which this proc can start numbering the owned dofs in the mpi renumbering

◆ m_dof_to_cell

template<typename MeshType>
datastructure::CrsMap<index_t, index_t> vulpes::dofs::DofHandler< MeshType >::m_dof_to_cell
protected

Map each (local) dof to the global cells to which it belongs to

◆ m_ghost_dof_to_local

template<typename MeshType>
boost::unordered_flat_map<index_t, index_t> vulpes::dofs::DofHandler< MeshType >::m_ghost_dof_to_local
protected

global dof id -> its position within m_ghost_dofs – see ghostDofLocalIndex().

◆ m_ghost_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_ghost_dofs
protected

global dof indices of this rank's ghost-cell dofs, deduplicated, stable order – see getGhostDofs(). Built once by buildGhostDofs(), called from finalize().

◆ m_glob_cum_ndof_per_entity

template<typename MeshType>
std::array<index_t, MeshType::self_dim + 2> vulpes::dofs::DofHandler< MeshType >::m_glob_cum_ndof_per_entity = {0}
protected

Cumulative number of dofs associated with each sub-dimensional entity vtxs, edges, faces, volumes

◆ m_global_to_local_dof

template<typename MeshType>
boost::unordered_flat_map<index_t, index_t> vulpes::dofs::DofHandler< MeshType >::m_global_to_local_dof
protected

map the dof associated with the geometry to the one in local enumeration

◆ m_has_renumbering

template<typename MeshType>
bool vulpes::dofs::DofHandler< MeshType >::m_has_renumbering = false
protected

◆ m_loc_cum_ndof_per_entity

template<typename MeshType>
std::array<index_t, MeshType::self_dim + 2> vulpes::dofs::DofHandler< MeshType >::m_loc_cum_ndof_per_entity = {0}
protected

Cumulative number of dofs associated with each sub-dimensional entity vtxs, edges, faces, volumes for this proc

◆ m_local_owned_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_local_owned_dofs
protected

list of owned dofs in local enumeration

◆ m_local_shared_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_local_shared_dofs
protected

list of shared dofs in local enumeration

◆ m_local_to_global_dof

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_local_to_global_dof
protected

map the dof in local enumeration to the one associated with the geometry

◆ m_mesh

template<typename MeshType>
const MeshType& vulpes::dofs::DofHandler< MeshType >::m_mesh
protected

Reference to the mesh

◆ m_new_to_old_numbering

template<typename MeshType>
MappingType vulpes::dofs::DofHandler< MeshType >::m_new_to_old_numbering
protected

map from the new numbering to the old one (the one associated with the geometry in serial, the local one in parallel)

◆ m_old_to_new_numbering

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_old_to_new_numbering
protected

map from the old numbering (the one associated with the geometry in serial, the local one in parallel) to the new one

◆ m_owned_cells_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_owned_cells_dofs
protected

dofs that belong to owned cells in local enumeration

◆ m_owned_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_owned_dofs
protected

list of owned dofs in global enumeration. a dof is owned if belongs to one of the cells of this proc AND it is not on the boundary of the partition. a dof cannot be owned and shared at the same time.

◆ m_owning_matrix_rows

template<typename MeshType>
std::size_t vulpes::dofs::DofHandler< MeshType >::m_owning_matrix_rows = 0
protected

matrix partitioning info

◆ m_partition_bnd_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_partition_bnd_dofs
protected

dofs that are on the boundary of the partition these are shared dofs that belong also to owned cells

◆ m_shared_dofs

template<typename MeshType>
std::vector<index_t> vulpes::dofs::DofHandler< MeshType >::m_shared_dofs
protected

list of shared dofs in global enumeration. a dof is shared if it belongs (also) to any of the ghost cells. a dof cannot be owned and shared at the same time.

◆ m_sparsity_pattern

template<typename MeshType>
datastructure::CrsMap<index_t, index_t> vulpes::dofs::DofHandler< MeshType >::m_sparsity_pattern
protected

Sparsity pattern for each (local) dof to the (global) dof it interacts with

◆ parallel

template<typename MeshType>
bool vulpes::dofs::DofHandler< MeshType >::parallel = MeshType::parallel()
inlinestaticconstexpr

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