From d6f22fc8f32592d479e60b3d328553fb39215e57 Mon Sep 17 00:00:00 2001
From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de>
Date: Mon, 13 Nov 2017 15:02:26 +0100
Subject: [PATCH] [NavierStokes][test] Make test_channel pass again

* original tests contains a flaw concerning the time management,
  this should be addressed some time
---
 test/freeflow/staggerednc/channeltestproblem.hh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/freeflow/staggerednc/channeltestproblem.hh b/test/freeflow/staggerednc/channeltestproblem.hh
index 6f63c5c46e..b4bc517ad4 100644
--- a/test/freeflow/staggerednc/channeltestproblem.hh
+++ b/test/freeflow/staggerednc/channeltestproblem.hh
@@ -242,12 +242,15 @@ public:
         BoundaryValues values = initialAtPos(globalPos);
 
         // give the system some time so that the pressure can equilibrate, then start the injection of the tracer
-        if(isInlet(globalPos) && time() >= 20.0)
+        if(isInlet(globalPos))
         {
-            values[transportCompIdx] = 1e-3;
+            if(time() >= 10.0 || inletVelocity_  < eps_)
+            {
+                values[transportCompIdx] = 1e-3;
 #if NONISOTHERMAL
             values[temperatureIdx] = 293.15;
 #endif
+            }
         }
 
         return values;
@@ -312,8 +315,6 @@ public:
     void setTimeLoop(TimeLoopPtr timeLoop)
     {
         timeLoop_ = timeLoop;
-        // if(inletVelocity_ > eps_)
-            timeLoop_->setCheckPoint({20.0});
     }
 
     Scalar time() const
-- 
GitLab