From: Wolfgang Bangerth Date: Fri, 27 Oct 2017 22:06:35 +0000 (-0600) Subject: Use appropriate data types to allow complex-valued vectors. X-Git-Tag: v9.0.0-rc1~860^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1933ef8b45399eb7d36c94761c0af263bb1903d;p=dealii.git Use appropriate data types to allow complex-valued vectors. --- 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