From c318e0deda90ec0f2496662886aec7200be9143c Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 7 Mar 2008 13:13:20 +0000 Subject: [PATCH] explicitly set the obstacle restriction object [[Imported from SVN: r2041]] --- src/rodsolver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rodsolver.cc b/src/rodsolver.cc index 7734c1b0..4da72a26 100644 --- a/src/rodsolver.cc +++ b/src/rodsolver.cc @@ -8,6 +8,7 @@ #include <dune/ag-common/trustregiongsstep.hh> #include <dune/ag-common/mmgstep.hh> +#include <dune/ag-common/contactobsrestrict.hh> #include <dune/ag-common/iterativesolver.hh> #include <dune/ag-common/energynorm.hh> @@ -120,7 +121,8 @@ void RodSolver<GridType>::setup(const GridType& grid, mmgStep->dirichletNodes_ = &dirichletNodes_; mmgStep->basesolver_ = baseSolver; mmgStep->presmoother_ = presmoother; - mmgStep->postsmoother_ = postsmoother; + mmgStep->postsmoother_ = postsmoother; + mmgStep->obstacleRestrictor_= new ContactObsRestriction<CorrectionType>(); mmgStep->hasObstacle_ = &hasObstacle_; mmgStep->obstacles_ = &trustRegionObstacles_; mmgStep->verbosity_ = Solver::QUIET; -- GitLab