opm-simulators
Loading...
Searching...
No Matches
Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper Class Reference

Small block vector wrapper class for model solutions. More...

#include <tpsamodel.hpp>

Public Member Functions

 TpsaBlockVectorWrapper (const std::string &, const std::size_t size)
 Constructor.
 TpsaBlockVectorWrapper ()=default
 Default constructor.
SolutionVector & blockVector ()
 Get reference of block vector.
const SolutionVector & blockVector () const
 Get const reference of block vector.
bool operator== (const TpsaBlockVectorWrapper &wrapper) const
 Check if incoming block vector is the same as current.
template<class Serializer>
void serializeOp (Serializer &serializer)
 Serializing operation.

Static Public Member Functions

static TpsaBlockVectorWrapper serializationTestObject ()
 Test function for serialization.

Protected Attributes

SolutionVector blockVector_

Detailed Description

template<class TypeTag>
class Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper

Small block vector wrapper class for model solutions.

Constructor & Destructor Documentation

◆ TpsaBlockVectorWrapper()

template<class TypeTag>
Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper::TpsaBlockVectorWrapper ( const std::string & ,
const std::size_t size )
inline

Constructor.

Parameters

param size Size of block vector

Member Function Documentation

◆ blockVector() [1/2]

template<class TypeTag>
SolutionVector & Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper::blockVector ( )
inline

Get reference of block vector.

Returns
Block vector

◆ blockVector() [2/2]

template<class TypeTag>
const SolutionVector & Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper::blockVector ( ) const
inline

Get const reference of block vector.

Returns
Block vector

◆ operator==()

template<class TypeTag>
bool Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper::operator== ( const TpsaBlockVectorWrapper & wrapper) const
inline

Check if incoming block vector is the same as current.

Parameters
wrapperBlock vector to check
Returns
Boolean indicating if wrapper is equal to current block vector

◆ serializeOp()

template<class TypeTag>
template<class Serializer>
void Opm::TpsaModel< TypeTag >::TpsaBlockVectorWrapper::serializeOp ( Serializer & serializer)
inline

Serializing operation.

Parameters
serializerReference to serializer object

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