]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test matrix_free/ecl_02 12053/head
authorPeter Munch <peterrmuench@gmail.com>
Sun, 18 Apr 2021 10:54:59 +0000 (12:54 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 18 Apr 2021 10:54:59 +0000 (12:54 +0200)
tests/matrix_free/ecl_02.cc
tests/matrix_free/ecl_02.output.novec [new file with mode: 0644]

index a46b38af4aef7a81551290b0aa0fcc6a983de91f..cb3693a25f64857dbcc0f813e3fe4730f0b02a76 100644 (file)
 #include "../tests.h"
 
 
-// tests matrix-free read_cell_data for locally refined mesh
+// Test FEFaceEvaluation::read_dof_values() and
+// FEFaceEvaluation::gather_evaluate() for ECL for two cells.
+//
+// @note Since this program assumes that both cells are within the same
+//   macro cell, this test is only run if vectorization is enabled.
 
 template <int dim,
           int fe_degree,
@@ -42,6 +46,9 @@ template <int dim,
 void
 test(const unsigned int n_refinements = 1)
 {
+  if (VectorizedArrayType::size() == 1)
+    return;
+
   using VectorType = LinearAlgebra::distributed::Vector<Number>;
 
   Triangulation<dim> tria;
@@ -149,5 +156,12 @@ int
 main()
 {
   initlog();
-  test<2, 1, 2, double, VectorizedArray<double, 2>>();
+  test<2,
+       1,
+       2,
+       double,
+       VectorizedArray<double,
+                       VectorizedArray<double>::size() < 2 ?
+                         VectorizedArray<double>::size() :
+                         2>>();
 }
diff --git a/tests/matrix_free/ecl_02.output.novec b/tests/matrix_free/ecl_02.output.novec
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+

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.