Skip to content

Commit

Permalink
all the missing functions added to Fmi3Interpreter (except setBinary …
Browse files Browse the repository at this point in the history
…for now)

Signed-off-by: Nestor <[email protected]>
  • Loading branch information
TheRealNestor committed Nov 2, 2023
1 parent 671246b commit d788b85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,9 +523,9 @@ private static Value getFmuInstanceValue(BufferedOutputStream fmuLogOutputStream
}));

functions.put("updateDiscreteStates", new FunctionValue.ExternalFunctionValue(fcargs -> {
// int updateDiscreteStates(bool[] discreteStatesNeedUpdate, bool[] terminateSimulation,
// bool[] nominalsOfContinuousStatesChanged, bool[] valuesOfContinuousStatesChanged, bool[] nextEventTimeDefined,
// real[] nextEventTime);
// int updateDiscreteStates(out bool[] discreteStatesNeedUpdate, out bool[] terminateSimulation,
// out bool[] nominalsOfContinuousStatesChanged, out bool[] valuesOfContinuousStatesChanged, out bool[] nextEventTimeDefined,
// out real[] nextEventTime);
checkArgLength(fcargs, 6);
try {
FmuResult<IFmi3Instance.UpdateDiscreteStates> res = instance.updateDiscreteStates();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ module FMI3Instance import FMU3State;{
/* end::EvaluateDiscreteStates[] */

/* tag::UpdateDiscreteStates[] */
int updateDiscreteStates(bool[] discreteStatesNeedUpdate, bool[] terminateSimulation,
bool[] nominalsOfContinuousStatesChanged, bool[] valuesOfContinuousStatesChanged, bool[] nextEventTimeDefined,
real[] nextEventTime);
int updateDiscreteStates(out bool[] discreteStatesNeedUpdate, out bool[] terminateSimulation,
out bool[] nominalsOfContinuousStatesChanged, out bool[] valuesOfContinuousStatesChanged, out bool[] nextEventTimeDefined,
out real[] nextEventTime);
/* end::UpdateDiscreteStates[] */

/***************************************************
Expand Down

0 comments on commit d788b85

Please sign in to comment.