34 #ifndef OPM_ENTITY2INDEXDATAHANDLE_HEADER
35 #define OPM_ENTITY2INDEXDATAHANDLE_HEADER
37 #include <dune/common/version.hh>
43 template<
int codim>
class Entity;
52 template<
class DataHandle,
int codim>
56 typedef typename DataHandle::DataType DataType;
59 : fromGrid_(grid), toGrid_(grid), data_(data)
62 : fromGrid_(fromGrid), toGrid_(toGrid), data_(data)
65 #if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 8)
68 return data_.fixedSize(3, codim);
73 #if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 7)
74 return data_.fixedSize(3, codim);
76 return data_.fixedsize(3, codim);
80 std::size_t size(std::size_t i)
85 void gather(B& buffer, std::size_t i)
90 void scatter(B& buffer, std::size_t i, std::size_t s)
Struct that hods all the data needed to represent a Cpgrid.
Definition: CpGridData.hpp:123
Wrapper that turns a data handle suitable for dune-grid into one based on integers instead of entitie...
Definition: Entity2IndexDataHandle.hpp:54
Definition: Entity.hpp:64
Copyright 2019 Equinor AS.
Definition: CartesianIndexMapper.hpp:10