From: Wolfgang Bangerth Date: Mon, 30 Oct 2017 22:32:59 +0000 (-0600) Subject: Make things work with complex-valued vectors. X-Git-Tag: v9.0.0-rc1~837^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b4c0422d11480d43b72ed659a52f01235426c4;p=dealii.git Make things work with complex-valued vectors. --- diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 3694ce4be2..54cff879a5 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -7265,9 +7265,10 @@ namespace VectorTools for (unsigned int q=0; q f_dot_n_times_n (f_dot_n * fe_values.normal_vector(q)); + const typename ProductType::type f_dot_n + = data.psi_grads[q][k] * fe_values.normal_vector(q); + const Tensor<1,spacedim,Number> f_dot_n_times_n + = f_dot_n * fe_values.normal_vector(q); data.psi_grads[q][k] -= (data.function_grads[q][k] + f_dot_n_times_n); }