]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Initialize with a linear_operator
authorMatthias Maier <tamiko@43-1.org>
Fri, 14 Jul 2017 18:17:19 +0000 (13:17 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 16 Jul 2017 16:53:31 +0000 (11:53 -0500)
include/deal.II/multigrid/mg_smoother.h

index 8ff6c6609ab1a78952798c8051e466742d97631d..29726dc8871e5f67926013f2fcf95c2bbf080646 100644 (file)
@@ -1036,7 +1036,7 @@ MGSmootherPrecondition<MatrixType, PreconditionerType, VectorType>::initialize
 
   for (unsigned int i=min; i<=max; ++i)
     {
-      matrices[i] = &m[i];
+      matrices[i] = linear_operator<VectorType>(m[i]);
       smoothers[i].initialize(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.