]> 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 22:06:35 +0000 (16:06 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 22:06:35 +0000 (16:06 -0600)
include/deal.II/fe/fe_tools_extrapolate.templates.h
include/deal.II/fe/fe_tools_interpolate.templates.h

index 6483d48473564cc72c275ee1f3ac24433611c13b..9afac77da3ff778386c75b0b386c249f9fcb1968 100644 (file)
@@ -1341,7 +1341,7 @@ namespace FETools
       // not owned patch cells
       // are computed, start
       // the interpolation
-      u2 = 0;
+      u2 = typename OutVector::value_type(0.);
 
       std::queue<WorkPackage> queue;
       {
index 298a751663a23d1055991b26328df9d714fd7efa..cd28ff018062e048097ea9cd93a65ff13534e9ac 100644 (file)
@@ -127,9 +127,9 @@ namespace FETools
     std::vector<types::global_dof_index> dofs;
     dofs.reserve (DoFTools::max_dofs_per_cell (dof2));
 
-    u2 = 0;
+    u2 = typename OutVector::value_type(0.);
     OutVector touch_count(u2);
-    touch_count = 0;
+    touch_count = typename OutVector::value_type(0.);
 
     // for distributed triangulations,
     // we can only interpolate u1 on

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.