From 3dd2020f634d1f4b3876d130bf916bb7e764781e Mon Sep 17 00:00:00 2001
From: Peter Munch <peterrmuench@gmail.com>
Date: Sun, 18 Apr 2021 12:54:59 +0200
Subject: [PATCH] Fix test matrix_free/ecl_02

---
 tests/matrix_free/ecl_02.cc           | 18 ++++++++++++++++--
 tests/matrix_free/ecl_02.output.novec |  1 +
 2 files changed, 17 insertions(+), 2 deletions(-)
 create mode 100644 tests/matrix_free/ecl_02.output.novec

diff --git a/tests/matrix_free/ecl_02.cc b/tests/matrix_free/ecl_02.cc
index a46b38af4a..cb3693a25f 100644
--- a/tests/matrix_free/ecl_02.cc
+++ b/tests/matrix_free/ecl_02.cc
@@ -32,7 +32,11 @@
 #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
index 0000000000..8b13789179
--- /dev/null
+++ b/tests/matrix_free/ecl_02.output.novec
@@ -0,0 +1 @@
+
-- 
2.39.5