28 #ifndef EWOMS_ECFV_GRID_COMM_HANDLE_FACTORY_HH 29 #define EWOMS_ECFV_GRID_COMM_HANDLE_FACTORY_HH 44 template<
class TypeTag>
47 typedef typename GET_PROP_TYPE(TypeTag, DofMapper) DofMapper;
54 template <
class ValueType,
class ArrayType>
56 minHandle(ArrayType& array,
const DofMapper& dofMapper)
59 return std::shared_ptr<Handle>(
new Handle(array, dofMapper));
66 template <
class ValueType,
class ArrayType>
68 maxHandle(ArrayType& array,
const DofMapper& dofMapper)
71 return std::shared_ptr<Handle>(
new Handle(array, dofMapper));
78 template <
class ValueType,
class ArrayType>
80 sumHandle(ArrayType& array,
const DofMapper& dofMapper)
83 return std::shared_ptr<Handle>(
new Handle(array, dofMapper));
Data handle for parallel communication which takes the maximum of all values that are attached to DOF...
Definition: gridcommhandles.hh:159
Definition: baseauxiliarymodule.hh:37
Data handle for parallel communication which sums up all values are attached to DOFs.
Definition: gridcommhandles.hh:44
Provides data handle for parallel communication which takes the minimum of all values that are attach...
Definition: gridcommhandles.hh:216
static std::shared_ptr< GridCommHandleMin< ValueType, ArrayType, DofMapper, 0 > > minHandle(ArrayType &array, const DofMapper &dofMapper)
Return a handle which computes the minimum of a value for each overlapping degree of freedom across a...
Definition: ecfvgridcommhandlefactory.hh:56
Provides data handles for parallel communication which operate on DOFs.
static std::shared_ptr< GridCommHandleMax< ValueType, ArrayType, DofMapper, 0 > > maxHandle(ArrayType &array, const DofMapper &dofMapper)
Return a handle which computes the maximum of a value for each overlapping degree of freedom across a...
Definition: ecfvgridcommhandlefactory.hh:68
static std::shared_ptr< GridCommHandleSum< ValueType, ArrayType, DofMapper, 0 > > sumHandle(ArrayType &array, const DofMapper &dofMapper)
Return a handle which computes the sum of all values all overlapping degrees of freedom across all pr...
Definition: ecfvgridcommhandlefactory.hh:80
A class which provides types for DUNE grid handles for communication.
Definition: ecfvgridcommhandlefactory.hh:45
Declare the basic properties used by the common infrastructure of the element-centered finite volume ...