From: Daniel Garcia-Sanchez Date: Wed, 9 Oct 2019 08:57:15 +0000 (+0200) Subject: Use a std::complex function for the tests integrate_difference_01_complex_0{1,2,3} X-Git-Tag: v9.2.0-rc1~984^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7fc73fa81eb27bfcb8d266b4ce3824958d24211;p=dealii.git Use a std::complex function for the tests integrate_difference_01_complex_0{1,2,3} --- diff --git a/tests/vector_tools/integrate_difference_01_complex_01.cc b/tests/vector_tools/integrate_difference_01_complex_01.cc index 6558e56be9..9714e81720 100644 --- a/tests/vector_tools/integrate_difference_01_complex_01.cc +++ b/tests/vector_tools/integrate_difference_01_complex_01.cc @@ -83,12 +83,13 @@ test(VectorTools::NormType norm, double value) VectorTools::interpolate(dofh, Ref(), solution); Vector cellwise_errors(tria.n_active_cells()); - VectorTools::integrate_difference(dofh, - solution, - Functions::ZeroFunction(dim), - cellwise_errors, - QGauss(5), - norm); + VectorTools::integrate_difference( + dofh, + solution, + Functions::ZeroFunction>(dim), + cellwise_errors, + QGauss(5), + norm); const double error = cellwise_errors.l2_norm(); diff --git a/tests/vector_tools/integrate_difference_01_complex_02.cc b/tests/vector_tools/integrate_difference_01_complex_02.cc index 7beebde725..a7878e99b4 100644 --- a/tests/vector_tools/integrate_difference_01_complex_02.cc +++ b/tests/vector_tools/integrate_difference_01_complex_02.cc @@ -83,12 +83,13 @@ test(VectorTools::NormType norm, double value) VectorTools::interpolate(dofh, Ref(), solution); Vector cellwise_errors(tria.n_active_cells()); - VectorTools::integrate_difference(dofh, - solution, - Functions::ZeroFunction(dim), - cellwise_errors, - QGauss(5), - norm); + VectorTools::integrate_difference( + dofh, + solution, + Functions::ZeroFunction>(dim), + cellwise_errors, + QGauss(5), + norm); const double error = cellwise_errors.l2_norm(); diff --git a/tests/vector_tools/integrate_difference_01_complex_03.cc b/tests/vector_tools/integrate_difference_01_complex_03.cc index 9ab9e9f66e..b5b7de793d 100644 --- a/tests/vector_tools/integrate_difference_01_complex_03.cc +++ b/tests/vector_tools/integrate_difference_01_complex_03.cc @@ -87,12 +87,13 @@ test(VectorTools::NormType norm, double value) VectorTools::interpolate(dofh, Ref(), solution); Vector cellwise_errors(tria.n_active_cells()); - VectorTools::integrate_difference(dofh, - solution, - Functions::ZeroFunction(dim), - cellwise_errors, - QGauss(5), - norm); + VectorTools::integrate_difference( + dofh, + solution, + Functions::ZeroFunction>(dim), + cellwise_errors, + QGauss(5), + norm); const double error = cellwise_errors.l2_norm();