A helper classe that converts a Dune::MultiTypeBlockVector into a plain Dune::BlockVector and transfers back values.
More...
#include <dumux/linear/matrixconverter.hh>
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 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...
|
| |
◆ 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
-
| b | The 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
-
| x | The multitype blockvector where the values are copied to |
| y | The regular blockvector where the values are copied from |
The documentation for this class was generated from the following file: