31#include <dune/grid/common/datahandleif.hh>
46template<
class Gr
idView,
class Vector>
48 :
public Dune::CommDataHandleIF<VectorVectorDataHandle<GridView,Vector>,
49 std::decay_t<decltype(std::declval<Vector>()[0][0])>>
54 using DataType = std::decay_t<decltype(std::declval<Vector>()[0][0])>;
60 : data_(data), gridView_(gridView)
63 bool contains(
int ,
int codim)
const
68 bool fixedSize(
int ,
int )
const
73 template<
class EntityType>
80 template<
class BufferType,
class EntityType>
83 for(
const auto&
vec: data_)
85 buffer.write(
vec[gridView_.indexSet().index(
e)]);
89 template<
class BufferType,
class EntityType>
96 buffer.read(
vec[gridView_.indexSet().index(
e)]);
101 const GridView& gridView_;
A data handle sending multiple data store in vectors attached to cells.
Definition VectorVectorDataHandle.hpp:50
VectorVectorDataHandle(Vector &data, const GridView &gridView)
Constructor.
Definition VectorVectorDataHandle.hpp:59
std::decay_t< decltype(std::declval< Vector >()[0][0])> DataType
the data type we send
Definition VectorVectorDataHandle.hpp:54
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242