From: Wolfgang Bangerth Date: Fri, 27 Oct 2017 21:52:06 +0000 (-0600) Subject: Use appropriate data types to allow complex-valued vectors. X-Git-Tag: v9.0.0-rc1~860^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb6f41bb92e79c2738eb3de8c70b9d298da4b663;p=dealii.git Use appropriate data types to allow complex-valued vectors. --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 2b0b068e3b..b1eb9a1cfa 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -8210,7 +8210,7 @@ namespace VectorTools Vector (dof.get_fe(0).n_components())); Number mean = Number(); - double area = 0.; + typename numbers::NumberTraits::real_type area = 0.; // Compute mean value for (cell = dof.begin_active(); cell != dof.end(); ++cell) if (cell->is_locally_owned())