From 8b9db3bf8d06767d62b27a6be206f351e8959baf Mon Sep 17 00:00:00 2001
From: Stefan Girke <stefan.girke@wwu.de>
Date: Fri, 19 Feb 2016 18:40:51 +0100
Subject: [PATCH] more improvements

---
 dune/fem-dg/examples/poisson/algorithmcreator.hh | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dune/fem-dg/examples/poisson/algorithmcreator.hh b/dune/fem-dg/examples/poisson/algorithmcreator.hh
index 5a023eaa..b630b864 100644
--- a/dune/fem-dg/examples/poisson/algorithmcreator.hh
+++ b/dune/fem-dg/examples/poisson/algorithmcreator.hh
@@ -22,6 +22,7 @@
 //--------- OPERATOR/SOLVER -----------------
 #include <dune/fem-dg/assemble/primalmatrix.hh>
 #include <dune/fem-dg/operator/dg/operatortraits.hh>
+#include <dune/fem-dg/operator/adaptation/poissonestimator.hh>
 //--------- FLUXES ---------------------------
 #include <dune/fem-dg/operator/fluxes/advection/fluxes.hh>
 #include <dune/fem-dg/operator/fluxes/euler/fluxes.hh>
@@ -120,9 +121,18 @@ namespace Fem
           typedef typename AC::template LinearSolvers< DFSpaceType, false/*true*/> type;
         };
 
+      private:
+        //TODO improve
+        typedef DiscreteFunctionType SigmaFunctionType;
+        typedef ErrorEstimator< DiscreteFunctionType, SigmaFunctionType, typename Operator::type >
+                                                                                   EstimatorType;
+        typedef PoissonSigmaEstimator< DiscreteFunctionType, typename Operator::AssemblerType, polOrd >
+                                                                                   SigmaEstimatorType;
+      public:
+
         typedef SubSolverMonitor< SolverMonitor >                                  SolverMonitorType;
         typedef SubDiagnostics< Diagnostics >                                      DiagnosticsType;
-        typedef PAdaptIndicator< PoissonEstimatorType, PoissonSigmaEstimatorType > AdaptIndicatorType;
+        typedef PAdaptIndicator< EstimatorType, SigmaEstimatorType >               AdaptIndicatorType;
       };
 
       template <int polOrd>
-- 
GitLab