From fd787b698a1385d31b3c332b21a24f3cc4d77ee3 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 13 Jul 2017 12:56:56 -0500 Subject: [PATCH] Cleanup: Use LinearOperator instead of PointerMatrix --- include/deal.II/multigrid/mg_block_smoother.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/deal.II/multigrid/mg_block_smoother.h b/include/deal.II/multigrid/mg_block_smoother.h index efaa62ae79..1a9c1ceb56 100644 --- a/include/deal.II/multigrid/mg_block_smoother.h +++ b/include/deal.II/multigrid/mg_block_smoother.h @@ -18,12 +18,12 @@ #include +#include #include -#include -#include #include +#include +#include #include -#include #include DEAL_II_NAMESPACE_OPEN @@ -114,12 +114,12 @@ private: /** * Pointer to the matrices. */ - MGLevelObject > > matrices; + MGLevelObject > > matrices; /** * Pointer to the matrices. */ - MGLevelObject > > smoothers; + MGLevelObject > > smoothers; /** * Reverse? @@ -174,8 +174,8 @@ MGSmootherBlock::clear () max_level=matrices.max_level(); for (; i<=max_level; ++i) { - smoothers[i] = nullptr; - matrices[i] = nullptr; + smoothers[i] = LinearOperator >(); + matrices[i] = LinearOperator >(); } } @@ -194,8 +194,8 @@ MGSmootherBlock::initialize (const MGMatrixT for (unsigned int i=min; i<=max; ++i) { - matrices[i] = &m[i]; - smoothers[i] = &s[i]; + matrices[i] = linear_operator >(m[i]); + smoothers[i] = linear_operator >(s[i]); } } -- 2.39.5