]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use appropriate data types to allow complex-valued vectors.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 21:52:06 +0000 (15:52 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 21:52:06 +0000 (15:52 -0600)
include/deal.II/numerics/vector_tools.templates.h

index 2b0b068e3b71dc9efc8ecd0b70e00afc5c922834..b1eb9a1cfa7a4dfaf51c8a672a027dff69774a80 100644 (file)
@@ -8210,7 +8210,7 @@ namespace VectorTools
                                         Vector<Number> (dof.get_fe(0).n_components()));
 
     Number mean = Number();
-    double area = 0.;
+    typename numbers::NumberTraits<Number>::real_type area = 0.;
     // Compute mean value
     for (cell = dof.begin_active(); cell != dof.end(); ++cell)
       if (cell->is_locally_owned())

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.