]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Enable unique_ptr in MGSmootherRelaxation
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 16 Aug 2023 11:30:13 +0000 (13:30 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Wed, 16 Aug 2023 11:30:13 +0000 (13:30 +0200)
include/deal.II/multigrid/mg_smoother.h

index d1014177ddfaa2e05fdc0a6b1705ef4c84e48d88..92f7be6906905515fb96712e19efb204be35930c 100644 (file)
@@ -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<MatrixType, RelaxationType, VectorType>::initialize(
       // enough interface to populate reinit_(domain|range)_vector. Thus,
       // apply an empty LinearOperator exemplar.
       matrices[i] =
-        linear_operator<VectorType>(LinearOperator<VectorType>(), m[i]);
-      smoothers[i].initialize(m[i], data);
+        linear_operator<VectorType>(LinearOperator<VectorType>(),
+                                    Utilities::get_underlying_value(m[i]));
+      smoothers[i].initialize(Utilities::get_underlying_value(m[i]), data);
     }
 }
 
@@ -860,8 +861,9 @@ MGSmootherRelaxation<MatrixType, RelaxationType, VectorType>::initialize(
       // enough interface to populate reinit_(domain|range)_vector. Thus,
       // apply an empty LinearOperator exemplar.
       matrices[i] =
-        linear_operator<VectorType>(LinearOperator<VectorType>(), m[i]);
-      smoothers[i].initialize(m[i], data[i]);
+        linear_operator<VectorType>(LinearOperator<VectorType>(),
+                                    Utilities::get_underlying_value(m[i]));
+      smoothers[i].initialize(Utilities::get_underlying_value(m[i]), data[i]);
     }
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.