From 350243ebec792c18555c2c7d97e459af2aacf935 Mon Sep 17 00:00:00 2001
From: Mario Ohlberger <mario@dune-project.org>
Date: Thu, 27 Oct 2005 14:34:42 +0000
Subject: [PATCH] updated to new call of localFunction

[[Imported from SVN: r3319]]
---
 fem/transfer/adaptoperator.hh | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/fem/transfer/adaptoperator.hh b/fem/transfer/adaptoperator.hh
index d898ada31..189f163d2 100644
--- a/fem/transfer/adaptoperator.hh
+++ b/fem/transfer/adaptoperator.hh
@@ -298,7 +298,7 @@ namespace Dune {
   public:
     //! Constructor
     RestProlOperatorFV ( DiscreteFunctionType & df , GeometryType eltype ) : df_ (df) ,
-                                                                             vati_ ( df_.newLocalFunction() ) , sohn_ ( df_.newLocalFunction() ) , quad_(eltype) , weight_(-1.0)
+                                                                             quad_(eltype) , weight_(-1.0)
     {}
 
     //! calculates the weight, i.e. (volume son)/(volume father)
@@ -326,8 +326,8 @@ namespace Dune {
       // if weight < 0.0 , weight has not been calculated
       assert(weight_ > 0.0);
 
-      df_.localFunction( father, vati_ );
-      df_.localFunction( son   , sohn_ );
+      LocalFunctionType vati_ =df_.localFunction( father);
+      LocalFunctionType sohn_ =df_.localFunction( son   );
 
 
       if(initialize)
@@ -352,8 +352,8 @@ namespace Dune {
     {
       //assert( son.state() == REFINED );
 
-      df_.localFunction( father, vati_ );
-      df_.localFunction( son   , sohn_ );
+      LocalFunctionType vati_ = df_.localFunction( father);
+      LocalFunctionType sohn_ = df_.localFunction( son   );
       for(int i=0; i<vati_.numDofs(); i++)
       {
         sohn_[i] = vati_[i];
@@ -363,9 +363,6 @@ namespace Dune {
   private:
     mutable DiscreteFunctionType & df_;
 
-    mutable LocalFunctionType vati_;
-    mutable LocalFunctionType sohn_;
-
     const BaryQuadType quad_;
     mutable RangeFieldType weight_;
   };
-- 
GitLab