Skip to content

Commit

Permalink
Fixed handling of events in daeMode with no states (#8625)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardbachmann committed Mar 1, 2022
1 parent 46c6e9e commit 76ee2db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions OMCompiler/SimulationRuntime/c/simulation/solver/dae_mode.c
Expand Up @@ -54,10 +54,6 @@ int evaluateDAEResiduals_wrapperEventUpdate(DATA* data, threadData_t* threadData
{
int retVal;

if (0 == data->simulationInfo->daeModeData->nResidualVars) {
return 0;
}

data->simulationInfo->discreteCall = 1;
retVal = data->simulationInfo->daeModeData->evaluateDAEResiduals(data, threadData, EVAL_DISCRETE);
data->simulationInfo->discreteCall = 0;
Expand Down

0 comments on commit 76ee2db

Please sign in to comment.