dune-pdelab  2.7-git
Public Member Functions | List of all members
Dune::PDELab::DisjointPartitioningGatherScatter< RankIndex > Class Template Reference

GatherScatter functor for creating a disjoint DOF partitioning. More...

#include <dune/pdelab/gridfunctionspace/genericdatahandle.hh>

Public Member Functions

template<typename MessageBuffer , typename Entity , typename LocalView >
bool gather (MessageBuffer &buff, const Entity &e, LocalView &local_view) const
 
template<typename MessageBuffer , typename Entity , typename LocalView >
bool scatter (MessageBuffer &buff, std::size_t n, const Entity &e, LocalView &local_view) const
 
 DisjointPartitioningGatherScatter (RankIndex rank)
 Create a DisjointPartitioningGatherScatter object. More...
 

Detailed Description

template<typename RankIndex>
class Dune::PDELab::DisjointPartitioningGatherScatter< RankIndex >

GatherScatter functor for creating a disjoint DOF partitioning.

This functor will associate each DOF with a unique rank, creating a nonoverlapping partitioning of the unknowns. The rank for a DOF is chosen by finding the lowest rank on which the associated grid entity belongs to either the interior or the border partition.

Note
In order to work correctly, the data handle must be communicated on the Dune::InteriorBorder_All_Interface and the result vector must be initialized with the MPI rank value.

Constructor & Destructor Documentation

◆ DisjointPartitioningGatherScatter()

template<typename RankIndex >
Dune::PDELab::DisjointPartitioningGatherScatter< RankIndex >::DisjointPartitioningGatherScatter ( RankIndex  rank)
inline

Create a DisjointPartitioningGatherScatter object.

Parameters
rankThe MPI rank of the current process.

Member Function Documentation

◆ gather()

template<typename RankIndex >
template<typename MessageBuffer , typename Entity , typename LocalView >
bool Dune::PDELab::DisjointPartitioningGatherScatter< RankIndex >::gather ( MessageBuffer &  buff,
const Entity &  e,
LocalView &  local_view 
) const
inline

◆ scatter()

template<typename RankIndex >
template<typename MessageBuffer , typename Entity , typename LocalView >
bool Dune::PDELab::DisjointPartitioningGatherScatter< RankIndex >::scatter ( MessageBuffer &  buff,
std::size_t  n,
const Entity &  e,
LocalView &  local_view 
) const
inline

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