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_);
76 unsigned elemIdx = elementMapper_.index(
elem);
80 unsigned numDof = stencil.numDof();
90 void prefetch(
const Element&
elem)
const
92 unsigned elemIdx = elementMapper_.index(
elem);
101 unsigned elemIdx = elementMapper_.index(
elem);
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_;
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