From e7fc73fa81eb27bfcb8d266b4ce3824958d24211 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Wed, 9 Oct 2019 10:57:15 +0200 Subject: [PATCH] Use a std::complex function for the tests integrate_difference_01_complex_0{1,2,3} --- .../integrate_difference_01_complex_01.cc | 13 +++++++------ .../integrate_difference_01_complex_02.cc | 13 +++++++------ .../integrate_difference_01_complex_03.cc | 13 +++++++------ 3 files changed, 21 insertions(+), 18 deletions(-) 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(); -- 2.39.5