Reference documentation for deal.II version Git d9b14c2d54 2019-09-14 18:13:29 -0600
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
Functions
CoarseningStrategies Namespace Reference

Functions

template<typename value_type >
value_type check_equality (const std::vector< value_type > &children_values)
 
template<typename value_type >
value_type sum (const std::vector< value_type > &children_values)
 
template<typename value_type >
value_type mean (const std::vector< value_type > &children_values)
 
template<typename value_type >
value_type max (const std::vector< value_type > &children_values)
 

Detailed Description

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 CellDataTransfer and parallel::distributed::CellDataTransfer constructors.

Author
Marc Fehling, 2019

Function Documentation

◆ check_equality()

template<typename value_type >
value_type CoarseningStrategies::check_equality ( const std::vector< value_type > &  children_values)

Check if data on all children match, and return that value.

◆ sum()

template<typename value_type >
value_type CoarseningStrategies::sum ( const std::vector< value_type > &  children_values)

Return sum of data on all children.

◆ mean()

template<typename value_type >
value_type CoarseningStrategies::mean ( const std::vector< value_type > &  children_values)

Return mean value of data on all children.

◆ max()

template<typename value_type >
value_type CoarseningStrategies::max ( const std::vector< value_type > &  children_values)

Return maximum value of data on all children.