Skip to content

Commit

Permalink
fail-fast fix for FMUs that crash (#11230)
Browse files Browse the repository at this point in the history
  • Loading branch information
sturmk committed Sep 27, 2023
1 parent 31fc8a7 commit 865f737
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -377,7 +377,7 @@ fmi2Status internalEventIteration(fmi2Component c, fmi2EventInfo *eventInfo)
fmi2Status status = fmi2OK;
eventInfo->newDiscreteStatesNeeded = fmi2True;
eventInfo->terminateSimulation = fmi2False;
while (eventInfo->newDiscreteStatesNeeded && !eventInfo->terminateSimulation) {
while (eventInfo->newDiscreteStatesNeeded && !eventInfo->terminateSimulation && status != fmi2Error) {
status = internalEventUpdate((ModelInstance *)c, eventInfo);
}
return status;
Expand Down

0 comments on commit 865f737

Please sign in to comment.