3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
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.
static void retrieveValues (MultiTypeBlockVector &x, const BlockVector &y)
 Copys the entries of a Dune::BlockVector to a Dune::MultiTypeBlockVector.

Member Function Documentation

◆ multiTypeToBlockVector()

template<class MultiTypeBlockVector, class Scalar = double>
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>
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: