From 7223edb7a1a9857e2d1e6b8ede75598e67b0b501 Mon Sep 17 00:00:00 2001
From: Felix Schindler <felix.schindler@wwu.de>
Date: Thu, 1 Aug 2019 12:54:55 +0200
Subject: [PATCH] [test|ESV2007] add test on cubic grids

---
 ...stationary_heat_equation__ESV2007__table_1.cc | 16 +++++++++++++++-
 ...ationary_heat_equation__ESV2007__table_1.mini | 15 +++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.cc b/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.cc
index a228d8e04..440bbc40a 100644
--- a/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.cc
+++ b/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.cc
@@ -22,7 +22,9 @@ using namespace Dune;
 using namespace Dune::GDT::Test;
 
 
-using ESV2007Table1Test = ESV2007DiffusionTest<ALU_2D_SIMPLEX_CONFORMING>;
+#if SIMPLEXGRID_2D_AVAILABLE
+
+using ESV2007Table1Test = ESV2007DiffusionTest<SIMPLEXGRID_2D>;
 TEST_F(ESV2007Table1Test, columns_1_to_5)
 {
   this->space_type_ = "dg_p1";
@@ -30,3 +32,15 @@ TEST_F(ESV2007Table1Test, columns_1_to_5)
   const auto expected_results = DXTC_TEST_CONFIG_SUB("results");
   XT::Test::check_eoc_study_for_success(expected_results, actual_results);
 }
+
+#endif // SIMPLEXGRID_2D_AVAILABLE
+
+
+using NearlyESV2007Table1ButWithCubicGridTest = ESV2007DiffusionTest<CUBEGRID_2D>;
+TEST_F(NearlyESV2007Table1ButWithCubicGridTest, columns_1_to_5)
+{
+  this->space_type_ = "dg_p1";
+  const auto actual_results = this->run();
+  const auto expected_results = DXTC_TEST_CONFIG_SUB("results");
+  XT::Test::check_eoc_study_for_success(expected_results, actual_results);
+}
diff --git a/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.mini b/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.mini
index 6f6bd6a39..c824c5d1c 100644
--- a/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.mini
+++ b/dune/gdt/test/stationary-heat-equation/stationary_heat_equation__ESV2007__table_1.mini
@@ -19,3 +19,18 @@ norm.eta_R    = [7.23e-02 1.82e-02 4.54e-03] # 1.14e-03]
 # norm.eta_DF = [3.38e-01 1.69e-01 8.39e-02 4.18e-02]
 norm.eta_DF  = [3.55e-01 1.76e-01 8.73e-02] # 4.35e-02]
 
+
+[NearlyESV2007Table1ButWithCubicGridTest.columns_1_to_5.setup]
+force_order = 4
+over_integrate = 0
+num_refinements = 2
+num_additional_refinements_for_reference = 0
+reference_solution_order = 4
+use_tbb = false
+
+[NearlyESV2007Table1ButWithCubicGridTest.columns_1_to_5.results]
+target.h      = [3.54e-01 1.77e-01 8.84e-02]
+norm.H_1_semi = [2.77e-01 1.39e-01 6.98e-02]
+norm.eta_NC   = [1.11e-02 3.62e-03 1.25e-03]
+norm.eta_R    = [8.85e-02 2.22e-02 5.56e-03]
+norm.eta_DF  = [4.42e-01 2.23e-01 1.12e-01]
-- 
GitLab