28 #ifndef EWOMS_ECFV_GRID_COMM_HANDLE_FACTORY_HH 29 #define EWOMS_ECFV_GRID_COMM_HANDLE_FACTORY_HH 46 template<
class TypeTag>
56 template <
class ValueType,
class ArrayType>
58 minHandle(ArrayType& array,
const DofMapper& dofMapper)
61 return std::make_shared<Handle>(array, dofMapper);
68 template <
class ValueType,
class ArrayType>
70 maxHandle(ArrayType& array,
const DofMapper& dofMapper)
73 return std::make_shared<Handle>(array, dofMapper);
80 template <
class ValueType,
class ArrayType>
82 sumHandle(ArrayType& array,
const DofMapper& dofMapper)
85 return std::make_shared<Handle>(array, dofMapper);
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(...))
Definition: propertysystem.hh:233
Data handle for parallel communication which takes the maximum of all values that are attached to DOF...
Definition: gridcommhandles.hh:161
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:70
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Provides data handle for parallel communication which takes the minimum of all values that are attach...
Definition: gridcommhandles.hh:218
Data handle for parallel communication which sums up all values are attached to DOFs.
Definition: gridcommhandles.hh:46
Declare the properties used by the infrastructure code of the finite volume discretizations.
Provides data handles for parallel communication which operate on DOFs.
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:58
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:82
A class which provides types for DUNE grid handles for communication.
Definition: ecfvgridcommhandlefactory.hh:47