51 using Element =
typename GridView::template Codim<0>::Entity;
53 using ElementMapper = Dune::MultipleCodimMultipleGeomTypeMapper<GridView>;
56 PffGridVector(
const GridView& gridView,
const DofMapper& dofMapper)
58 , elementMapper_(gridView_, Dune::mcmgElementLayout())
59 , dofMapper_(dofMapper)
62 template <
class DistFn>
74 Stencil stencil(gridView_, dofMapper_);
77 const unsigned elemIdx = elementMapper_.index(
elem);
81 const unsigned numDof = stencil.numDof();
92 void prefetch(
const Element&
elem)
const
94 const unsigned elemIdx = elementMapper_.index(
elem);
103 const unsigned elemIdx = elementMapper_.index(
elem);
108 unsigned computeNumLocalDofs_()
const
113 Stencil stencil(gridView_, dofMapper_);
115 stencil.update(
elem);
116 result += stencil.numDof();
123 ElementMapper elementMapper_;
124 const DofMapper& dofMapper_;
125 std::vector<Data> data_;
126 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:39
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240