]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust some tests.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 May 2024 03:32:35 +0000 (21:32 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 23 May 2024 16:38:48 +0000 (10:38 -0600)
tests/base/qprojector.cc
tests/base/quadrature_is_tensor_product.cc
tests/hp/fe_nothing_dominates_01.cc
tests/hp/fe_nothing_dominates_02.cc

index 342429d24c2aae2d683b0d9901d4d8f64687a6df..881c6f546e3ea3f6dacb01a9a93d8b332ebc0f99 100644 (file)
@@ -180,7 +180,7 @@ main()
   deallog << std::setprecision(2);
 
 
-  Quadrature<1> none(0);
+  Quadrature<1> none;
   check(none);
 
   QGauss<1> midpoint(1);
index 2f084caae3c61f197aa45ec784735ff4653e8d17..c04d82dd993b48abf384ceb6a5a0e20ff60aeafa 100644 (file)
@@ -26,7 +26,8 @@ template <int dim>
 void
 print_is_tensor_product()
 {
-  Quadrature<dim> q_0(1);
+  Quadrature<dim> q_0(std::vector<Point<dim>>{Point<dim>()},
+                      std::vector<double>{0.});
   deallog << "Quadrature<" << dim << ">: " << q_0.is_tensor_product()
           << std::endl;
 
index 0fec17c9877a4e4984da6f1ce9ecd11dd96ba3b8..a5b97c9960f1379e319e03798af8c543d3b88963 100644 (file)
@@ -46,7 +46,10 @@ test(const bool fe_nothing_dominates)
     hp::FECollection<dim> fe_collection(FE_Nothing<dim>(/*n_components=*/1,
                                                         fe_nothing_dominates),
                                         FE_Q<dim>(1));
-    hp::QCollection<dim>  q_collection(Quadrature<dim>(1), QGauss<dim>(2));
+    hp::QCollection<dim>  q_collection(
+      Quadrature<dim>(std::vector<Point<dim>>{Point<dim>()},
+                      std::vector<double>{0.}),
+      QGauss<dim>(2));
     project(fe_collection, q_collection, function);
   }
 
@@ -55,7 +58,10 @@ test(const bool fe_nothing_dominates)
     hp::FECollection<dim> fe_collection(FE_Q<dim>(1),
                                         FE_Nothing<dim>(/*n_components=*/1,
                                                         fe_nothing_dominates));
-    hp::QCollection<dim>  q_collection(QGauss<dim>(2), Quadrature<dim>(1));
+    hp::QCollection<dim>  q_collection(
+      QGauss<dim>(2),
+      Quadrature<dim>(std::vector<Point<dim>>{Point<dim>()},
+                      std::vector<double>{0.}));
     project(fe_collection, q_collection, function);
   }
 }
index 68b2af252c62a51ddebff80d1e4a854d66bbd07d..96cc3c374969d552bb9b3b04e7e4a3621e0ecbd9 100644 (file)
@@ -48,7 +48,10 @@ test()
     hp::FECollection<dim> fe_collection(
       FESystem<dim>(FE_Q<dim>(1), FE_Q<dim>(1)),
       FESystem<dim>(FE_Nothing<dim>(1, true), FE_Nothing<dim>(1, false)));
-    hp::QCollection<dim> q_collection(QGauss<dim>(2), Quadrature<dim>(1));
+    hp::QCollection<dim> q_collection(
+      QGauss<dim>(2),
+      Quadrature<dim>(std::vector<Point<dim>>{Point<dim>()},
+                      std::vector<double>{0.}));
     project(fe_collection, q_collection, function);
   }
   {
@@ -56,7 +59,10 @@ test()
     hp::FECollection<dim> fe_collection(
       FESystem<dim>(FE_Nothing<dim>(1, true), FE_Nothing<dim>(1, false)),
       FESystem<dim>(FE_Q<dim>(1), FE_Q<dim>(1)));
-    hp::QCollection<dim> q_collection(Quadrature<dim>(1), QGauss<dim>(2));
+    hp::QCollection<dim> q_collection(
+      Quadrature<dim>(std::vector<Point<dim>>{Point<dim>()},
+                      std::vector<double>{0.}),
+      QGauss<dim>(2));
     project(fe_collection, q_collection, function);
   }
 }

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.