version 3.8
Dumux::VectorConverter< MultiTypeBlockVector, Scalar > Class Template Reference

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

#include <dumux/linear/matrixconverter.hh>

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)
 Copies 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
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
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: