Opm::PffGridVector< GridView, Stencil, Data, DofMapper > Class Template Reference

A random-access container which stores data attached to a grid's degrees of freedom in a prefetch friendly manner. More...

#include <pffgridvector.hh>

Public Member Functions

 PffGridVector (const GridView &gridView, const DofMapper &dofMapper)
 
template<class DistFn >
void update (const DistFn &distFn)
 
void prefetch (const Element &elem) const
 
const Data & get (const Element &elem, unsigned localDofIdx) const
 

Detailed Description

template<class GridView, class Stencil, class Data, class DofMapper>
class Opm::PffGridVector< GridView, Stencil, Data, DofMapper >

A random-access container which stores data attached to a grid's degrees of freedom in a prefetch friendly manner.

This container often reduces the number of cache faults considerably, thus improving performance. On the flipside data cannot be written to on an individual basis and it requires significantly more memory than a plain array. PffVector stands for "PreFetch Friendly Grid Vector".

Constructor & Destructor Documentation

◆ PffGridVector()

template<class GridView , class Stencil , class Data , class DofMapper >
Opm::PffGridVector< GridView, Stencil, Data, DofMapper >::PffGridVector ( const GridView &  gridView,
const DofMapper &  dofMapper 
)
inline

Member Function Documentation

◆ get()

template<class GridView , class Stencil , class Data , class DofMapper >
const Data & Opm::PffGridVector< GridView, Stencil, Data, DofMapper >::get ( const Element &  elem,
unsigned  localDofIdx 
) const
inline

◆ prefetch()

template<class GridView , class Stencil , class Data , class DofMapper >
void Opm::PffGridVector< GridView, Stencil, Data, DofMapper >::prefetch ( const Element &  elem) const
inline

References Opm::prefetch().

◆ update()

template<class GridView , class Stencil , class Data , class DofMapper >
template<class DistFn >
void Opm::PffGridVector< GridView, Stencil, Data, DofMapper >::update ( const DistFn &  distFn)
inline

The documentation for this class was generated from the following file: