From 1ae35b1f660d8a87e158d3c6dc3ae9b9ad65d610 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de>
Date: Fri, 11 Jan 2019 09:51:25 +0100
Subject: [PATCH] [skip ci] Throw away error calculation in driver

---
 ..._dg_3d_facedir_facemod_variation_driver.cc | 51 ++++++++++---------
 1 file changed, 26 insertions(+), 25 deletions(-)

diff --git a/test/sumfact/poisson/facedir-facemod-variation/sumfact_poisson_dg_3d_facedir_facemod_variation_driver.cc b/test/sumfact/poisson/facedir-facemod-variation/sumfact_poisson_dg_3d_facedir_facemod_variation_driver.cc
index 5c6054e1..e3ab5344 100644
--- a/test/sumfact/poisson/facedir-facemod-variation/sumfact_poisson_dg_3d_facedir_facemod_variation_driver.cc
+++ b/test/sumfact/poisson/facedir-facemod-variation/sumfact_poisson_dg_3d_facedir_facemod_variation_driver.cc
@@ -233,32 +233,33 @@ int main(int argc, char** argv){
       Dune::printmatrix(std::cout, native(m),"global stiffness matrix","row",9,1);
     }
 
-    // Maybe calculate errors for test results...
-    using DG1_GFS__DGF = Dune::PDELab::DiscreteGridFunction<decltype(dg1_gfs_),decltype(x_r)>;
-    DG1_GFS__DGF dg1_gfs__dgf(dg1_gfs_,x_r);
-    using DifferenceSquaredAdapter_ = Dune::PDELab::DifferenceSquaredAdapter<decltype(func_0000), decltype(dg1_gfs__dgf)>;
-    DifferenceSquaredAdapter_ dsa_(func_0000, dg1_gfs__dgf);
-    Dune::FieldVector<RangeType, 1> l2error(0.0);
-    {
-      // L2 error squared of difference between numerical
-      // solution and the interpolation of exact solution
-      // for treepath ()
-      typename decltype(dsa_)::Traits::RangeType err(0.0);
-      Dune::PDELab::integrateGridFunction(dsa_, err, 10);
+    // // Maybe calculate errors for test results...
+    // using DG1_GFS__DGF = Dune::PDELab::DiscreteGridFunction<decltype(dg1_gfs_),decltype(x_r)>;
+    // DG1_GFS__DGF dg1_gfs__dgf(dg1_gfs_,x_r);
+    // using DifferenceSquaredAdapter_ = Dune::PDELab::DifferenceSquaredAdapter<decltype(func_0000), decltype(dg1_gfs__dgf)>;
+    // DifferenceSquaredAdapter_ dsa_(func_0000, dg1_gfs__dgf);
+    // Dune::FieldVector<RangeType, 1> l2error(0.0);
+    // {
+    //   // L2 error squared of difference between numerical
+    //   // solution and the interpolation of exact solution
+    //   // for treepath ()
+    //   typename decltype(dsa_)::Traits::RangeType err(0.0);
+    //   Dune::PDELab::integrateGridFunction(dsa_, err, 10);
 
-      l2error += err;
-      if (gv.comm().rank() == 0){
-        std::cout << "L2 Error for treepath : " << err << std::endl;
-      }}
-    bool testfail(false);
-    using std::abs;
-    using std::isnan;
-    if (gv.comm().rank() == 0){
-      std::cout << "\nl2errorsquared: " << l2error << std::endl << std::endl;
-    }
-    if (isnan(l2error[0]) or abs(l2error[0])>1e-4)
-      testfail = true;
-    return testfail;
+    //   l2error += err;
+    //   if (gv.comm().rank() == 0){
+    //     std::cout << "L2 Error for treepath : " << err << std::endl;
+    //   }}
+    // bool testfail(false);
+    // using std::abs;
+    // using std::isnan;
+    // if (gv.comm().rank() == 0){
+    //   std::cout << "\nl2errorsquared: " << l2error << std::endl << std::endl;
+    // }
+    // if (isnan(l2error[0]) or abs(l2error[0])>1e-4)
+    //   testfail = true;
+    // return testfail;
+    return 0;
 
   }
   catch (Dune::Exception& e)
-- 
GitLab