27#ifndef EWOMS_PFF_GRID_VECTOR_HH
28#define EWOMS_PFF_GRID_VECTOR_HH
32#include <dune/grid/common/mcmgmapper.hh>
33#include <dune/common/version.hh>
47template <
class Gr
idView,
class Stencil,
class Data,
class DofMapper>
50 using Element =
typename GridView::template Codim<0>::Entity;
52 using ElementMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
55 PffGridVector(
const GridView& gridView,
const DofMapper& dofMapper)
57 , elementMapper_(gridView_, Dune::mcmgElementLayout())
58 , dofMapper_(dofMapper)
61 template <
class DistFn>
73 Stencil stencil(gridView_, dofMapper_);
80 unsigned numDof = stencil.numDof();
90 void prefetch(
const Element&
elem)
const
106 unsigned computeNumLocalDofs_()
const
111 Stencil stencil(gridView_, dofMapper_);
113 stencil.update(
elem);
114 result += stencil.numDof();
121 ElementMapper elementMapper_;
122 const DofMapper& dofMapper_;
123 std::vector<Data> data_;
124 std::vector<Data*> elemData_;
A random-access container which stores data attached to a grid's degrees of freedom in a prefetch fri...
Definition pffgridvector.hh:49
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
void prefetch(const T &val, unsigned n=1)
Template function which emits prefetch instructions for a range of memory.
Definition prefetch.hh:38
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242