]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compilation with some matrix free tests. 3475/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 5 Nov 2016 19:33:30 +0000 (15:33 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 5 Nov 2016 22:46:56 +0000 (18:46 -0400)
This fixes a compilation error with GCC 4.8:

error: no match for ‘operator=’
(operand types are ‘boost::shared_ptr<dealii::Table<2, dealii::VectorizedArray<double> > >’ and ‘long int’)

      scalar_coefficient = NULL;
                         ^

include/deal.II/matrix_free/operators.h

index ffd9b83e82149fa711eed234bf1610567ef93a45..98990d4fa06a890f19340a62e0e785b0f38a31ba 100644 (file)
@@ -1008,7 +1008,7 @@ namespace MatrixFreeOperators
   clear ()
   {
     Base<dim, Number>::clear();
-    scalar_coefficient = NULL;
+    scalar_coefficient.reset();
   }
 
 

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.