We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25e1a2b commit c6fe683Copy full SHA for c6fe683
1 file changed
src/OMSimulatorLib/SystemSC.cpp
@@ -959,6 +959,10 @@ oms_status_enu_t oms::SystemSC::stepUntil(double stopTime)
959
if (status != oms_status_ok)
960
logWarning("Bad return code at time " + std::to_string(time));
961
962
+ // Check whether stopping time has changed due to a request from an FMU
963
+ if (getModel().getStopTime() < endTime)
964
+ endTime = getModel().getStopTime();
965
+
966
if (isTopLevelSystem() && Flags::ProgressBar() && time > lastTime + maximumStepSize)
967
{
968
Log::ProgressBar(startTime, stopTime, time);
0 commit comments