From 40fd113144ceb1f4ac78d6e672c8e9fd25afbecd Mon Sep 17 00:00:00 2001 From: adamkosik Date: Sun, 8 Nov 2015 23:10:57 +0100 Subject: [PATCH] FETools::project_dg, initialize output to zero --- source/fe/fe_tools_interpolate.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/fe/fe_tools_interpolate.cc b/source/fe/fe_tools_interpolate.cc index ada241182b..989e01aa9c 100644 --- a/source/fe/fe_tools_interpolate.cc +++ b/source/fe/fe_tools_interpolate.cc @@ -721,6 +721,7 @@ namespace FETools FullMatrix 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); -- 2.39.5