Commit adf27369 authored by Janek Kozicki's avatar Janek Kozicki

fix #157

parent 9bbc68c2
Pipeline #149529479 passed with stages
in 145 minutes and 50 seconds
......@@ -27,7 +27,7 @@ void SimulationFlow::singleAction()
scene->moveToNextTimeStep();
if (scene->stopAtIter > 0 && scene->iter == scene->stopAtIter)
setTerminate(true);
if (scene->stopAtTime > 0 && scene->time == scene->stopAtTime)
if (scene->stopAtTime > 0 && scene->time >= scene->stopAtTime)
setTerminate(true);
};
......
  • Hi Janek, what would happen if you call O.run() after stoppedAtTime? Wouldn't the simulation stop immediatelly again? If so, probably setting scene->stopAtTime to 0 "automatically" would be a good idea. cheers Jan

  • yeah, why not. Feel free to make MR for that :)

  • good point (see here)

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment