Opm::VectorVectorDataHandle< GridView, Vector > Class Template Reference

A data handle sending multiple data store in vectors attached to cells. More...

#include <VectorVectorDataHandle.hpp>

Inheritance diagram for Opm::VectorVectorDataHandle< GridView, Vector >:
Inheritance graph

Public Types

using DataType = std::decay_t< decltype(Vector()[0][0])>
 the data type we send More...
 

Public Member Functions

 VectorVectorDataHandle (Vector &data, const GridView &gridView)
 Constructor. More...
 
bool contains (int, int codim) const
 
bool fixedSize (int, int) const
 
template<class EntityType >
std::size_t size (const EntityType) const
 
template<class BufferType , class EntityType >
void gather (BufferType &buffer, const EntityType &e) const
 
template<class BufferType , class EntityType >
void scatter (BufferType &buffer, const EntityType &e, std::size_t n)
 

Detailed Description

template<class GridView, class Vector>
class Opm::VectorVectorDataHandle< GridView, Vector >

A data handle sending multiple data store in vectors attached to cells.

Each data is assumed to a container with operator[] and the class operates on a vector of these.

Template Parameters
GridViewthe type of the grid view the data associated with
Thetype of the vector of vectors.

Member Typedef Documentation

◆ DataType

template<class GridView , class Vector >
using Opm::VectorVectorDataHandle< GridView, Vector >::DataType = std::decay_t<decltype(Vector()[0][0])>

the data type we send

Constructor & Destructor Documentation

◆ VectorVectorDataHandle()

template<class GridView , class Vector >
Opm::VectorVectorDataHandle< GridView, Vector >::VectorVectorDataHandle ( Vector &  data,
const GridView &  gridView 
)
inline

Constructor.

Parameters
dataThe vector of data vectors
gridViewThe gridview the data is attached to.

Member Function Documentation

◆ contains()

template<class GridView , class Vector >
bool Opm::VectorVectorDataHandle< GridView, Vector >::contains ( int  ,
int  codim 
) const
inline

◆ fixedSize()

template<class GridView , class Vector >
bool Opm::VectorVectorDataHandle< GridView, Vector >::fixedSize ( int  ,
int   
) const
inline

◆ gather()

template<class GridView , class Vector >
template<class BufferType , class EntityType >
void Opm::VectorVectorDataHandle< GridView, Vector >::gather ( BufferType &  buffer,
const EntityType &  e 
) const
inline

◆ scatter()

template<class GridView , class Vector >
template<class BufferType , class EntityType >
void Opm::VectorVectorDataHandle< GridView, Vector >::scatter ( BufferType &  buffer,
const EntityType &  e,
std::size_t  n 
)
inline

◆ size()

template<class GridView , class Vector >
template<class EntityType >
std::size_t Opm::VectorVectorDataHandle< GridView, Vector >::size ( const  EntityType) const
inline

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