34#ifndef OPM_ENTITY2INDEXDATAHANDLE_HEADER
35#define OPM_ENTITY2INDEXDATAHANDLE_HEADER
37#include <dune/common/version.hh>
45template<
int codim>
class Entity;
54template<
class DataHandle,
int codim>
58 typedef typename DataHandle::DataType DataType;
61 : fromGrid_(grid), toGrid_(grid), data_(data)
64 : fromGrid_(fromGrid), toGrid_(toGrid), data_(data)
67#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 8)
70 return data_.fixedSize(3, codim);
75 return data_.fixedSize(3, codim);
78 std::size_t size(std::size_t i)
83 void gather(B& buffer, std::size_t i)
88 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:122
Wrapper that turns a data handle suitable for dune-grid into one based on integers instead of entitie...
Definition: Entity2IndexDataHandle.hpp:56
Definition: Entity.hpp:64
Copyright 2019 Equinor AS.
Definition: CartesianIndexMapper.hpp:10