Skip to content

Commit

Permalink
- Avoid FMU could not converge in event update error by setting the…
Browse files Browse the repository at this point in the history
… iterationConverged to true.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23716 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Dec 10, 2014
1 parent ad664f7 commit d8841b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c
Expand Up @@ -732,7 +732,7 @@ fmiStatus fmiEventUpdate(fmiComponent c, fmiBoolean intermediateResults, fmiEven
intermediateResults = fmiTrue;
if (comp->loggingOn)
comp->functions.logger(c, comp->instanceName, fmiOK, "log", "fmiEventUpdate: Need to iterate(discrete changes)!");
eventInfo->iterationConverged = fmiFalse;
eventInfo->iterationConverged = fmiTrue;
eventInfo->stateValueReferencesChanged = fmiFalse;
eventInfo->stateValuesChanged = fmiTrue;
eventInfo->terminateSimulation = fmiFalse;
Expand Down

0 comments on commit d8841b6

Please sign in to comment.