]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #4856
authorjussi.koskela <jussi.koskela@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 4 Jun 2014 13:48:00 +0000 (13:48 +0000)
committerjussi.koskela <jussi.koskela@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 4 Jun 2014 13:48:00 +0000 (13:48 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29588 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SimulateDurationJob.java

index 6f03e6e8b727ff5928cd49f888d461c631dfa6fe..0f1832843203d293c6c37741c7b53fd1cd5b834d 100644 (file)
@@ -57,7 +57,7 @@ class SimulateDurationJob extends Job {
                        base.setSubscribedResults(monitor, time);\r
 \r
                        int stepNumber = 1;\r
-                       while(time < eTime && !canceled) {\r
+                       while((eTime - time > base.stepLength * 1e-6) && !canceled) {\r
                                \r
                                if(eTime - time < base.stepLength)\r
                                        solver.setStepLength(eTime - time);\r