CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
157 stars 51 forks source link

Continue fmi2DoStep() after warning in rtwsfcnfmi.tlc #311

Closed friedrichatgc closed 2 years ago

friedrichatgc commented 3 years ago

In fmi2Functions.c:897 a warning is printed if the internal FMU time and the external time does not match a given EPS. This warning is fine but the "return fmi2Warning;" statement after this warning seems to be a bug since the code of fmi2DoStep must continue after a warning. Returning with fmi2Warning must be done at the end of fmi2DoStep.