3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | List of all members
Dumux::VectorConverter< MultiTypeBlockVector, Scalar > Class Template Reference

A helper classe that converts a Dune::MultiTypeBlockVector into a plain Dune::BlockVector and transfers back values. More...

#include <dumux/linear/matrixconverter.hh>

Description

template<class MultiTypeBlockVector, class Scalar = double>
class Dumux::VectorConverter< MultiTypeBlockVector, Scalar >

A helper classe that converts a Dune::MultiTypeBlockVector into a plain Dune::BlockVector and transfers back values.

Static Public Member Functions

static auto multiTypeToBlockVector (const MultiTypeBlockVector &b)
 Converts a Dune::MultiTypeBlockVector to a plain 1x1 Dune::BlockVector. More...
 
static void retrieveValues (MultiTypeBlockVector &x, const BlockVector &y)
 Copys the entries of a Dune::BlockVector to a Dune::MultiTypeBlockVector. More...
 

Member Function Documentation

◆ multiTypeToBlockVector()

template<class MultiTypeBlockVector , class Scalar = double>
static auto Dumux::VectorConverter< MultiTypeBlockVector, Scalar >::multiTypeToBlockVector ( const MultiTypeBlockVector &  b)
inlinestatic

Converts a Dune::MultiTypeBlockVector to a plain 1x1 Dune::BlockVector.

Parameters
bThe original multitype blockvector

◆ retrieveValues()

template<class MultiTypeBlockVector , class Scalar = double>
static void Dumux::VectorConverter< MultiTypeBlockVector, Scalar >::retrieveValues ( MultiTypeBlockVector &  x,
const BlockVector &  y 
)
inlinestatic

Copys the entries of a Dune::BlockVector to a Dune::MultiTypeBlockVector.

Parameters
xThe multitype blockvector where the values are copied to
yThe regular blockvector where the values are copied from

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