]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust scalar type of a local matrix to match that of the global one.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Jun 2015 19:26:28 +0000 (14:26 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Jun 2015 19:34:03 +0000 (14:34 -0500)
examples/step-37/step-37.cc

index 7fab2a4a0a13b2a16ac014d16b4e918ac8d40179..cd54b7b10558392238aee4583cc1eadc1bd68682 100644 (file)
@@ -891,7 +891,7 @@ namespace Step37
     std::vector<types::global_dof_index> local_dof_indices (dofs_per_cell);
     const Coefficient<dim>    coefficient;
     std::vector<double>       coefficient_values (n_q_points);
-    FullMatrix<double>        local_matrix (dofs_per_cell, dofs_per_cell);
+    FullMatrix<float>         local_matrix (dofs_per_cell, dofs_per_cell);
     Vector<double>            local_diagonal (dofs_per_cell);
 
     const unsigned int n_levels = triangulation.n_levels();

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.