]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use appropriate data types to allow complex-valued vectors. 5345/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 22:40:06 +0000 (16:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 27 Oct 2017 22:40:06 +0000 (16:40 -0600)
include/deal.II/fe/fe_tools_interpolate.templates.h

index cd28ff018062e048097ea9cd93a65ff13534e9ac..744b39d12b0ed704ddb5def50cbcff867af7ca7d 100644 (file)
@@ -641,7 +641,7 @@ namespace FETools
     FullMatrix<double> matrix(n2,n1);
     get_projection_matrix(dof1.get_fe(), dof2.get_fe(), matrix);
 
-    u2 = 0;
+    u2 = typename OutVector::value_type(0.);
     while (cell2 != end)
       {
         cell1->get_dof_values(u1, u1_local);

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.