Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Fix initialization of parameters and attributes for FMUs
Browse files Browse the repository at this point in the history
Fix ticket:5218

Belonging to [maintenance/v1.13]:
  - #2857
  - OpenModelica/OpenModelica-testsuite#1098
  • Loading branch information
lochel authored and OpenModelica-Hudson committed Jan 9, 2019
1 parent 5491249 commit dd02f65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SimulationRuntime/fmi/export/fmi2/fmu2_model_interface.c
Expand Up @@ -637,7 +637,12 @@ fmi2Status fmi2ExitInitializationMode(fmi2Component c)
return fmi2Error;
FILTERED_LOG(comp, fmi2OK, LOG_FMI2_CALL, "fmi2ExitInitializationMode...")

setThreadData(comp);
comp->fmuData->callback->updateBoundParameters(comp->fmuData, comp->threadData);
comp->fmuData->callback->updateBoundVariableAttributes(comp->fmuData, comp->threadData);
comp->state = modelEventMode;
resetThreadData(comp);

FILTERED_LOG(comp, fmi2OK, LOG_FMI2_CALL, "fmi2ExitInitializationMode: succeed")
return fmi2OK;
}
Expand Down

0 comments on commit dd02f65

Please sign in to comment.