From d1933ef8b45399eb7d36c94761c0af263bb1903d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 27 Oct 2017 16:06:35 -0600 Subject: [PATCH] Use appropriate data types to allow complex-valued vectors. --- include/deal.II/fe/fe_tools_extrapolate.templates.h | 2 +- include/deal.II/fe/fe_tools_interpolate.templates.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/fe/fe_tools_extrapolate.templates.h b/include/deal.II/fe/fe_tools_extrapolate.templates.h index 6483d48473..9afac77da3 100644 --- a/include/deal.II/fe/fe_tools_extrapolate.templates.h +++ b/include/deal.II/fe/fe_tools_extrapolate.templates.h @@ -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 queue; { diff --git a/include/deal.II/fe/fe_tools_interpolate.templates.h b/include/deal.II/fe/fe_tools_interpolate.templates.h index 298a751663..cd28ff0180 100644 --- a/include/deal.II/fe/fe_tools_interpolate.templates.h +++ b/include/deal.II/fe/fe_tools_interpolate.templates.h @@ -127,9 +127,9 @@ namespace FETools std::vector 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 -- 2.39.5