From 901b6cf9f5209612345fcbf434e2dcb4dcb86927 Mon Sep 17 00:00:00 2001
From: Stefan Girke <stefan.girke@wwu.de>
Date: Fri, 19 Feb 2016 18:23:08 +0100
Subject: [PATCH] fix some obvious compiler errors

---
 dune/fem-dg/algorithm/caller/adapt.hh |  2 +-
 dune/fem-dg/algorithm/sub/elliptic.hh | 11 ++++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/dune/fem-dg/algorithm/caller/adapt.hh b/dune/fem-dg/algorithm/caller/adapt.hh
index b4021296..f2dca099 100644
--- a/dune/fem-dg/algorithm/caller/adapt.hh
+++ b/dune/fem-dg/algorithm/caller/adapt.hh
@@ -237,7 +237,7 @@ namespace Fem
         // some info in verbose mode
         if( Fem::Parameter::verbose() )
         {
-          std::cout << "Start adaptation: step " << startCount << ",  grid size: " << alg->gridSize()
+          std::cout << "Start adaptation: grid size: " << alg->gridSize()
                     << std::endl;
         }
       }
diff --git a/dune/fem-dg/algorithm/sub/elliptic.hh b/dune/fem-dg/algorithm/sub/elliptic.hh
index 0882a1ee..611d4dc5 100644
--- a/dune/fem-dg/algorithm/sub/elliptic.hh
+++ b/dune/fem-dg/algorithm/sub/elliptic.hh
@@ -158,13 +158,14 @@ namespace Fem
 
     typedef DiscreteFunctionImp                                      DiscreteFunctionType;
     typedef typename DiscreteFunctionType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType;
-    typedef DiscreteFunctionType::GridPartType                       GridPartType;
+    typedef typename DiscreteFunctionType::GridPartType              GridPartType;
     typedef typename GridPartType::GridType                          GridType;
     typedef AssemblerImp                                             AssemblerType;
     static const int polynomialOrder = polOrder;
 
     typedef typename DiscreteFunctionSpaceType ::
-      template ToNewDimRange< dimension * ModelType::dimRange >::NewFunctionSpaceType     SigmaFunctionSpaceType;
+      template ToNewDimRange< GridType::dimension * DiscreteFunctionSpaceType::FunctionSpaceType::dimRange >::NewFunctionSpaceType
+                                                                     SigmaFunctionSpaceType;
 
     PoissonSigmaEstimator( GridPartType& gridPart,
                            const DiscreteFunctionType& solution,
@@ -564,7 +565,7 @@ namespace Fem
     typedef typename SigmaEstimatorType::DiscreteFunctionType            DiscreteFunctionType;
     typedef typename SigmaEstimatorType::AssemblerType                   AssemblerType;
     typedef typename SigmaEstimatorType::SigmaFunctionSpaceType          SigmaFunctionSpaceType;
-    typedef typename DiscreteFunctionType::DiscreteFunctionSpaceType     DiscreteFunctionType;
+    typedef typename DiscreteFunctionType::DiscreteFunctionSpaceType     DiscreteFunctionSpaceType;
     typedef typename DiscreteFunctionType::GridPartType                  GridPartType;
     typedef typename GridPartType::GridType                              GridType;
     static const int polOrder = SigmaEstimatorType::polynomialOrder;
@@ -576,7 +577,7 @@ namespace Fem
   public:
    typedef uint64_t                          UInt64Type;
 
-    PAdaptivity( GridType& grid, const DiscreteFunctionType& solution, AssemblerType& assembler, const std::string name = "" )
+    PAdaptIndicator( GridType& grid, const DiscreteFunctionType& solution, AssemblerType& assembler, const std::string name = "" )
       : pAdapt_( grid, solution.space() ),
         sigmaEstimator_( solution.gridPart(), solution, assembler, name )
     {}
@@ -620,7 +621,7 @@ namespace Fem
     const int finestLevel() const { return 0; }
 
     // return some info
-    const SigmaFunctionType& sigma()
+    const typename SigmaEstimatorType::SigmaLocalFunctionAdapterType& sigma()
     {
       return sigmaEstimator_.sigma()
     }
-- 
GitLab