From 7621e39f4171d99394ec336d2a601ddf768153a0 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Wed, 22 May 2013 11:32:27 +0000
Subject: [PATCH] implicit mpnc: simplify obstacle test problem, since Dirchlet
 conditions are evaluated on the boundary

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10730 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 test/implicit/mpnc/obstacleproblem.hh | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/test/implicit/mpnc/obstacleproblem.hh b/test/implicit/mpnc/obstacleproblem.hh
index a39a922009..e0cc50c5ae 100644
--- a/test/implicit/mpnc/obstacleproblem.hh
+++ b/test/implicit/mpnc/obstacleproblem.hh
@@ -183,9 +183,6 @@ public:
 
         FluidSystem::init(Tmin, Tmax, nT, pmin, pmax, np);
         name_ = GET_RUNTIME_PARAM_FROM_GROUP(TypeTag, std::string, Problem, Name);
-        
-        const Element& element = *gridView.template begin<0>();
-        elementWidth_ = element.geometry().corner(1)[0] - element.geometry().corner(0)[0];
     }
 
     /*!
@@ -357,9 +354,7 @@ private:
         // set the fluid temperatures
         fs.setTemperature(this->temperatureAtPos(globalPos));
 
-        // the second condition is required for the cell-centered disc
-        if ((isBox && onInlet_(globalPos))
-            || (globalPos[0] > 60 - elementWidth_/2.0 - eps_ && globalPos[1] <= 10)) 
+        if (onInlet_(globalPos))
         {
             // only liquid on inlet
             refPhaseIdx = wPhaseIdx;
@@ -447,7 +442,6 @@ private:
     Scalar temperature_;
     Scalar eps_;
     std::string name_;
-    Scalar elementWidth_;
 };
 } //end namespace
 
-- 
GitLab