]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a std::complex function for the tests integrate_difference_01_complex_0{1,2,3}
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Oct 2019 08:57:15 +0000 (10:57 +0200)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Oct 2019 08:57:15 +0000 (10:57 +0200)
tests/vector_tools/integrate_difference_01_complex_01.cc
tests/vector_tools/integrate_difference_01_complex_02.cc
tests/vector_tools/integrate_difference_01_complex_03.cc

index 6558e56be90bdf123646f9e9be36493f2d920a5f..9714e8172022d810e5eba0c407c9da89169d19a4 100644 (file)
@@ -83,12 +83,13 @@ test(VectorTools::NormType norm, double value)
   VectorTools::interpolate(dofh, Ref<dim>(), solution);
 
   Vector<double> cellwise_errors(tria.n_active_cells());
-  VectorTools::integrate_difference(dofh,
-                                    solution,
-                                    Functions::ZeroFunction<dim>(dim),
-                                    cellwise_errors,
-                                    QGauss<dim>(5),
-                                    norm);
+  VectorTools::integrate_difference(
+    dofh,
+    solution,
+    Functions::ZeroFunction<dim, std::complex<double>>(dim),
+    cellwise_errors,
+    QGauss<dim>(5),
+    norm);
 
   const double error = cellwise_errors.l2_norm();
 
index 7beebde725fc0039bfde263747ea033edaf6d383..a7878e99b477a44d14c373c008313506465258fb 100644 (file)
@@ -83,12 +83,13 @@ test(VectorTools::NormType norm, double value)
   VectorTools::interpolate(dofh, Ref<dim>(), solution);
 
   Vector<double> cellwise_errors(tria.n_active_cells());
-  VectorTools::integrate_difference(dofh,
-                                    solution,
-                                    Functions::ZeroFunction<dim>(dim),
-                                    cellwise_errors,
-                                    QGauss<dim>(5),
-                                    norm);
+  VectorTools::integrate_difference(
+    dofh,
+    solution,
+    Functions::ZeroFunction<dim, std::complex<double>>(dim),
+    cellwise_errors,
+    QGauss<dim>(5),
+    norm);
 
   const double error = cellwise_errors.l2_norm();
 
index 9ab9e9f66e9239da3c2ee3a0eb3816d1e7c47541..b5b7de793d1ae210739a599e5528a6161b81a1d9 100644 (file)
@@ -87,12 +87,13 @@ test(VectorTools::NormType norm, double value)
   VectorTools::interpolate(dofh, Ref<dim>(), solution);
 
   Vector<double> cellwise_errors(tria.n_active_cells());
-  VectorTools::integrate_difference(dofh,
-                                    solution,
-                                    Functions::ZeroFunction<dim>(dim),
-                                    cellwise_errors,
-                                    QGauss<dim>(5),
-                                    norm);
+  VectorTools::integrate_difference(
+    dofh,
+    solution,
+    Functions::ZeroFunction<dim, std::complex<double>>(dim),
+    cellwise_errors,
+    QGauss<dim>(5),
+    norm);
 
   const double error = cellwise_errors.l2_norm();
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.