Skip to content
Snippets Groups Projects
Commit 1affa228 authored by Patrick Jaap's avatar Patrick Jaap
Browse files

EnergyNorm: add getMatrix() method

parent 63d7a91d
No related branches found
No related tags found
1 merge request!62EnergyNorm: add getMatrix() method
Pipeline #42667 passed
# Master (will become release 2.8) # Master (will become release 2.9)
- The internal matrix of the`EnergyNorm` can now be accessed by `getMatrix()`.
# Release 2.8
- `UMFPackSolver` can now handle matrices and vectors with scalar entries. - `UMFPackSolver` can now handle matrices and vectors with scalar entries.
......
...@@ -60,6 +60,11 @@ namespace Solvers { ...@@ -60,6 +60,11 @@ namespace Solvers {
matrixProvider_ = [=]() -> const MatrixType& { return *matrix; }; matrixProvider_ = [=]() -> const MatrixType& { return *matrix; };
} }
//! \brief get the energy norm matrix
const MatrixType& getMatrix() const {
return matrixProvider_();
}
//! \brief sets to use the current problem matrix of the linear iteration step //! \brief sets to use the current problem matrix of the linear iteration step
template<class BV> template<class BV>
void setIterationStep(LinearIterationStep<MatrixType, VectorType, BV>* step) { void setIterationStep(LinearIterationStep<MatrixType, VectorType, BV>* step) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment