From: Martin Kronbichler Date: Wed, 16 Aug 2023 11:30:13 +0000 (+0200) Subject: Enable unique_ptr in MGSmootherRelaxation X-Git-Tag: relicensing~586^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f8325773fddb24e0f1193ddd8e83767fc462401;p=dealii.git Enable unique_ptr in MGSmootherRelaxation --- diff --git a/include/deal.II/multigrid/mg_smoother.h b/include/deal.II/multigrid/mg_smoother.h index d1014177dd..92f7be6906 100644 --- a/include/deal.II/multigrid/mg_smoother.h +++ b/include/deal.II/multigrid/mg_smoother.h @@ -689,7 +689,7 @@ namespace mg this->resize(min, max); for (unsigned int i = min; i <= max; ++i) - (*this)[i].initialize(m[i], data); + (*this)[i].initialize(Utilities::get_underlying_value(m[i]), data); } @@ -706,7 +706,7 @@ namespace mg this->resize(min, max); for (unsigned int i = min; i <= max; ++i) - (*this)[i].initialize(m[i], data[i]); + (*this)[i].initialize(Utilities::get_underlying_value(m[i]), data[i]); } @@ -833,8 +833,9 @@ MGSmootherRelaxation::initialize( // enough interface to populate reinit_(domain|range)_vector. Thus, // apply an empty LinearOperator exemplar. matrices[i] = - linear_operator(LinearOperator(), m[i]); - smoothers[i].initialize(m[i], data); + linear_operator(LinearOperator(), + Utilities::get_underlying_value(m[i])); + smoothers[i].initialize(Utilities::get_underlying_value(m[i]), data); } } @@ -860,8 +861,9 @@ MGSmootherRelaxation::initialize( // enough interface to populate reinit_(domain|range)_vector. Thus, // apply an empty LinearOperator exemplar. matrices[i] = - linear_operator(LinearOperator(), m[i]); - smoothers[i].initialize(m[i], data[i]); + linear_operator(LinearOperator(), + Utilities::get_underlying_value(m[i])); + smoothers[i].initialize(Utilities::get_underlying_value(m[i]), data[i]); } }