Bugfix [#30954] Fluid obstacle checkbox has no effect
authorDaniel Genrich <daniel.genrich@gmx.net>
Sun, 15 Apr 2012 10:31:38 +0000 (10:31 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Sun, 15 Apr 2012 10:31:38 +0000 (10:31 +0000)
Needs testing for sideeffects.

If there are negative sideeffects, revert commit and mark as "will not fix"/"not supported"/"needs UI fix".

intern/elbeem/intern/solver_init.cpp

index 7e9f5e7f4202e0d085d925623ecb05e74ceaae3b..58f45e4fbfb4ef839515911efa96c9c932b750d1 100644 (file)
@@ -1453,7 +1453,9 @@ void LbmFsgrSolver::initMovingObstacles(bool staticInit) {
                        //errMsg("GEOACTT"," obj "<<obj->getName()<<" a:"<<active<<","<<wasActive<<"  s"<<sourceTime<<" t"<<targetTime <<" v"<<mObjectSpeeds[OId] );
                        // skip inactive in/out flows
                        if(ntype==CFInvalid){ errMsg("LbmFsgrSolver::initMovingObstacles","Invalid obj type "<<obj->getGeoInitType()); continue; }
-                       if((!active) && (otype&(CFMbndOutflow|CFMbndInflow)) ) continue;
+                       /* DG: only inflows/outlfows could be activated/deactivated, test new code that everything can be activated
+                       if((!active) && (otype&(CFMbndOutflow|CFMbndInflow)) ) continue; */
+                       if((!active) /* && (otype&(CFMbndOutflow|CFMbndInflow)) */ ) continue;
 
                        // copied from  recalculateObjectSpeeds
                        mObjectSpeeds[OId] = vec2L(mpParam->calculateLattVelocityFromRw( vec2P( (*mpGiObjects)[OId]->getInitialVelocity(mSimulationTime) )));