Skip to content

Commit

Permalink
Remove unused eventInfo from FMI{1|2}Functions structs (#401)
Browse files Browse the repository at this point in the history
fixes #364
  • Loading branch information
t-sommer authored Sep 11, 2023
1 parent 6d758a5 commit 4cf5c36
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion include/FMI1.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct FMI1Functions_ {
****************************************************/

fmi1CallbackFunctions callbacks;
fmi1EventInfo eventInfo;

fmi1SetRealTYPE *fmi1SetReal;
fmi1SetIntegerTYPE *fmi1SetInteger;
Expand Down
1 change: 0 additions & 1 deletion include/FMI2.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ extern "C" {
struct FMI2Functions_ {

fmi2CallbackFunctions callbacks;
fmi2EventInfo eventInfo;

/***************************************************
Common Functions for FMI 2.0
Expand Down
7 changes: 0 additions & 7 deletions src/FMI2.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ FMIStatus FMI2Instantiate(FMIInstance *instance, const char *fmuResourceLocation
return FMIError;
}

instance->fmi2Functions->eventInfo.newDiscreteStatesNeeded = fmi2False;
instance->fmi2Functions->eventInfo.terminateSimulation = fmi2False;
instance->fmi2Functions->eventInfo.nominalsOfContinuousStatesChanged = fmi2False;
instance->fmi2Functions->eventInfo.valuesOfContinuousStatesChanged = fmi2False;
instance->fmi2Functions->eventInfo.nextEventTimeDefined = fmi2False;
instance->fmi2Functions->eventInfo.nextEventTime = 0.0;

instance->state = FMIStartAndEndState;

#if !defined(FMI_VERSION) || FMI_VERSION == 2
Expand Down

0 comments on commit 4cf5c36

Please sign in to comment.