Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
Static Public Member Functions | List of all members
parallel::distributed::CellDataTransfer< dim, spacedim, VectorType >::CoarseningStrategies Struct Reference

#include <deal.II/distributed/cell_data_transfer.h>

Static Public Member Functions

static VectorType::value_type check_equality (const typename parallel::distributed::Triangulation< dim, spacedim >::cell_iterator &parent, const VectorType &input_vector)
 
static VectorType::value_type sum (const typename parallel::distributed::Triangulation< dim, spacedim >::cell_iterator &parent, const VectorType &input_vector)
 
static VectorType::value_type mean (const typename parallel::distributed::Triangulation< dim, spacedim >::cell_iterator &parent, const VectorType &input_vector)
 

Detailed Description

template<int dim, int spacedim = dim, typename VectorType = Vector<double>>
struct parallel::distributed::CellDataTransfer< dim, spacedim, VectorType >::CoarseningStrategies

When data is transferred during coarsening, it is not trivial to decide how to handle data of child cells which will be coarsened. Or in other words, which data should be stored in the corresponding parent cell.

In this namespace, we offer a few strategies that cope with this problem. Such strategies can be passed to the parallel::distributed::CellDataTransfer constructor.

Definition at line 138 of file cell_data_transfer.h.

Member Function Documentation

◆ check_equality()

template<int dim, int spacedim = dim, typename VectorType = Vector<double>>
static VectorType::value_type parallel::distributed::CellDataTransfer< dim, spacedim, VectorType >::CoarseningStrategies::check_equality ( const typename parallel::distributed::Triangulation< dim, spacedim >::cell_iterator &  parent,
const VectorType &  input_vector 
)
inlinestatic

Evaluate data from input_vector on children of parent. Check if data on all children match, and return that value.

Definition at line 145 of file cell_data_transfer.h.

◆ sum()

template<int dim, int spacedim = dim, typename VectorType = Vector<double>>
static VectorType::value_type parallel::distributed::CellDataTransfer< dim, spacedim, VectorType >::CoarseningStrategies::sum ( const typename parallel::distributed::Triangulation< dim, spacedim >::cell_iterator &  parent,
const VectorType &  input_vector 
)
inlinestatic

Evaluate data from input_vector on children of parent. Return sum.

Definition at line 168 of file cell_data_transfer.h.

◆ mean()

template<int dim, int spacedim = dim, typename VectorType = Vector<double>>
static VectorType::value_type parallel::distributed::CellDataTransfer< dim, spacedim, VectorType >::CoarseningStrategies::mean ( const typename parallel::distributed::Triangulation< dim, spacedim >::cell_iterator &  parent,
const VectorType &  input_vector 
)
inlinestatic

Evaluate data from input_vector on children of parent. Return mean value.

Definition at line 187 of file cell_data_transfer.h.


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