28 #ifndef EWOMS_VCFV_GRID_COMM_HANDLE_FACTORY_HH
29 #define EWOMS_VCFV_GRID_COMM_HANDLE_FACTORY_HH
44 template<
class TypeTag>
47 typedef typename GET_PROP_TYPE(TypeTag, DofMapper) DofMapper;
48 typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;
50 static const int dim = GridView::dimension;
57 template <
class ValueType,
class ArrayType>
59 minHandle(ArrayType& array,
const DofMapper& dofMapper)
62 return std::shared_ptr<Handle>(
new Handle(array, dofMapper));
69 template <
class ValueType,
class ArrayType>
71 maxHandle(ArrayType& array,
const DofMapper& dofMapper)
74 return std::shared_ptr<Handle>(
new Handle(array, dofMapper));
81 template <
class ValueType,
class ArrayType>
83 sumHandle(ArrayType& array,
const DofMapper& dofMapper)
86 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
static std::shared_ptr< GridCommHandleMax< ValueType, ArrayType, DofMapper, dim > > 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: vcfvgridcommhandlefactory.hh:71
static std::shared_ptr< GridCommHandleMin< ValueType, ArrayType, DofMapper, dim > > 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: vcfvgridcommhandlefactory.hh:59
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
Provides data handles for parallel communication which operate on DOFs.
Declares the basic properties used by the common infrastructure of the vertex-centered finite volume ...
A class which provides types for DUNE grid handles for communication.
Definition: vcfvgridcommhandlefactory.hh:45
static std::shared_ptr< GridCommHandleSum< ValueType, ArrayType, DofMapper, dim > > 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: vcfvgridcommhandlefactory.hh:83