Salome HOME
Correction of bug in Bloc.getMaxLevelOfParallelism.
[modules/yacs.git] / src / engine / Bloc.cxx
index d4822f5b5494c05a023a091406727dc72b00a016..d0e762426bb51de6da865a7a07f7b9d432e18faa 100644 (file)
@@ -412,7 +412,7 @@ int Bloc::getMaxLevelOfParallelism() const
         {
           s.erase(seed);
           std::set<InGate *> ingates(seed->getOutGate()->edSetInGate());
-          int myCurLev2(1);
+          int myCurLev2(seed->getMaxLevelOfParallelism());
           for(std::set<InGate *>::const_iterator it=ingates.begin();it!=ingates.end();it++)
             {
               Node *curNode((*it)->getNode());