]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FETools::project_dg, initialize output to zero
authoradamkosik <adam.kosik@atlas.cz>
Sun, 8 Nov 2015 22:10:57 +0000 (23:10 +0100)
committeradamkosik <adam.kosik@atlas.cz>
Sun, 8 Nov 2015 22:10:57 +0000 (23:10 +0100)
source/fe/fe_tools_interpolate.cc

index ada241182b2ee10055387bb65758404c612269e0..989e01aa9c469a681d4aa15fdc6d49a01f6c17a7 100644 (file)
@@ -721,6 +721,7 @@ namespace FETools
     FullMatrix<double> matrix(n2,n1);
     get_projection_matrix(dof1.get_fe(), dof2.get_fe(), matrix);
 
+    u2 = 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.