From fb10685a1cc32c6e6c597df4b9ba98f68bf587f3 Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Thu, 13 Apr 2017 10:30:58 +0200
Subject: [PATCH] Add a diagonal test

---
 test/sumfact/poisson/CMakeLists.txt |  5 +++++
 test/sumfact/poisson/diagonal.mini  | 21 +++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 test/sumfact/poisson/diagonal.mini

diff --git a/test/sumfact/poisson/CMakeLists.txt b/test/sumfact/poisson/CMakeLists.txt
index f61954bd..72fbf5af 100644
--- a/test/sumfact/poisson/CMakeLists.txt
+++ b/test/sumfact/poisson/CMakeLists.txt
@@ -60,3 +60,8 @@ dune_add_formcompiler_system_test(UFLFILE poisson_dg_3d.ufl
                                   BASENAME sumfact_poisson_dg_3d_sliced
                                   INIFILE sliced.mini
                                   )
+
+dune_add_formcompiler_system_test(UFLFILE poisson_dg_3d.ufl
+                                  BASENAME sumfact_poisson_dg_3d_diagonal
+                                  INIFILE diagonal.mini
+                                  )
diff --git a/test/sumfact/poisson/diagonal.mini b/test/sumfact/poisson/diagonal.mini
new file mode 100644
index 00000000..4fc3703e
--- /dev/null
+++ b/test/sumfact/poisson/diagonal.mini
@@ -0,0 +1,21 @@
+__name = sumfact_poisson_dg_3d_diagonal
+
+cells = 2 2 2
+extension = 1. 1. 1.
+
+[wrapper.vtkcompare]
+name = {__name}
+extension = vtu
+
+[formcompiler]
+sumfact = 1
+exact_solution_expression = g
+compare_l2errorsquared = 1e-5
+vectorize_quad = 0
+vectorize_grads = 0
+vectorize_diagonal = 1
+quadrature_order = 6
+fastdg = 1
+
+[formcompiler.ufl_variants]
+degree = 2
-- 
GitLab