Skip to content

Commit 53b01e2

Browse files
author
Håkan Lundvall
committed
If the desired output interval was smaller than 0.001 not output was given except for at events. Now fixed.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2975 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 137a893 commit 53b01e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c_runtime/simulation_runtime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ double newTime(double t, double step,double stop)
109109
}
110110
} else {
111111
newTime=(floor( (t+1e-10) / step) + 1.0)*step;
112+
globalData->lastEmittedTime = newTime;
113+
globalData->forceEmit = 1;
112114
}
113115

114116
// Do not exceed the stop time.

0 commit comments

Comments
 (0)