From ef9c4aa8c1d7ae2b2ec5c726b8d3970e2f343579 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@dune-project.org> Date: Wed, 27 Mar 2019 16:48:51 +0100 Subject: [PATCH] Provide mutable access to matrix in transfer operator This is needed to use the new assembleGlobalBasisTransferMatrix(...) assembler functions which needs access to the internal raw matrix. --- .../transferoperators/compressedmultigridtransfer.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dune/solvers/transferoperators/compressedmultigridtransfer.hh b/dune/solvers/transferoperators/compressedmultigridtransfer.hh index 1cdd9ebd..93402d10 100644 --- a/dune/solvers/transferoperators/compressedmultigridtransfer.hh +++ b/dune/solvers/transferoperators/compressedmultigridtransfer.hh @@ -139,6 +139,11 @@ public: return *matrix_; } + /** \brief Direct access to the operator matrix, if you absolutely want it! */ + TransferOperatorType& getMatrix() { + return *matrix_; + } + /** \brief Set matrix! */ void setMatrix(typename std::shared_ptr<TransferOperatorType>& matrix) { @@ -291,6 +296,11 @@ public: return *matrix_; } + /** \brief Direct access to the operator matrix, if you absolutely want it! */ + TransferOperatorType& getMatrix() { + return *matrix_; + } + /** \brief Set matrix! */ void setMatrix(typename std::shared_ptr<TransferOperatorType>& matrix) { -- GitLab