28#ifndef EWOMS_VCFV_GRID_COMM_HANDLE_FACTORY_HH
29#define EWOMS_VCFV_GRID_COMM_HANDLE_FACTORY_HH
46template<
class TypeTag>
52 static constexpr int dim = GridView::dimension;
59 template <
class ValueType,
class ArrayType>
61 minHandle(ArrayType& array,
const DofMapper& dofMapper)
64 return std::make_shared<Handle>(array, dofMapper);
71 template <
class ValueType,
class ArrayType>
73 maxHandle(ArrayType& array,
const DofMapper& dofMapper)
76 return std::make_shared<Handle>(array, dofMapper);
83 template <
class ValueType,
class ArrayType>
85 sumHandle(ArrayType& array,
const DofMapper& dofMapper)
88 return std::make_shared<Handle>(array, dofMapper);
Data handle for parallel communication which takes the maximum of all values that are attached to DOF...
Definition gridcommhandles.hh:165
Provides data handle for parallel communication which takes the minimum of all values that are attach...
Definition gridcommhandles.hh:222
Data handle for parallel communication which sums up all values are attached to DOFs.
Definition gridcommhandles.hh:50
A class which provides types for DUNE grid handles for communication.
Definition vcfvgridcommhandlefactory.hh:48
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:61
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 of all overlapping degrees of freedom across all...
Definition vcfvgridcommhandlefactory.hh:85
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:73
Declare the properties used by the infrastructure code of the finite volume discretizations.
Provides data handles for parallel communication which operate on DOFs.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
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