diff --git a/fem/transfer/adaptoperator.hh b/fem/transfer/adaptoperator.hh index e7ba330369b5fdfe2df47f48d5b6927b82c6c214..e9691596e79cc912bc2f64c9a5befab0b779da3b 100644 --- a/fem/transfer/adaptoperator.hh +++ b/fem/transfer/adaptoperator.hh @@ -164,8 +164,10 @@ namespace Dune { if(restr || ref) dm_.dofCompress(); - //grid_.loadBalance( dm_ ); - //grid_.communicate( dm_ ); +#ifdef _ALU3DGRID_PARALLEL_ + grid_.loadBalance( dm_ ); + grid_.communicate( dm_ ); +#endif // do cleanup grid_.postAdapt(); @@ -259,10 +261,6 @@ namespace Dune { calcedWeight_ = true; } - // assume constant weihgt, i.e. grid is refined and coarsend - // the same way every step - mutable bool calcedWeight_; - //! corresponding grid mutable GridType & grid_; @@ -272,6 +270,10 @@ namespace Dune { //! Restriction and Prolongation Operator mutable RestProlOperatorImp & rpOp_; + // assume constant weihgt, i.e. grid is refined and coarsend + // the same way every step + mutable bool calcedWeight_; + }; @@ -344,7 +346,9 @@ namespace Dune { df_.localFunction( father, vati_ ); df_.localFunction( son , sohn_ ); for(int i=0; i<vati_.numberOfDofs(); i++) + { sohn_[i] = vati_[i]; + } } } @@ -354,8 +358,8 @@ namespace Dune { mutable LocalFunctionType vati_; mutable LocalFunctionType sohn_; - const RangeFieldType weight_; const BaryQuadType quad_; + const RangeFieldType weight_; };