Skip to content

Commit

Permalink
Fix unassigned variable in CompositeEvent.add (#11480)
Browse files Browse the repository at this point in the history
  • Loading branch information
perost committed Oct 31, 2023
1 parent c0ade4e commit 2856ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OMCompiler/Compiler/NBackEnd/Modules/2_Pre/NBEvents.mo
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,7 @@ public
elseif not createAux then
// do not create auxiliary variable and equation
UnorderedMap.add(condition, CompositeEvent.COMPOSITE_EVENT(bucket.auxiliaryTimeEventIndex, Pointer.create(NBVariable.DUMMY_VARIABLE)), bucket.time_map);
exp := condition.exp;
else
if createAux then
// make a new auxiliary variable and return the expression which replaces the zero crossing
Expand Down

0 comments on commit 2856ad7

Please sign in to comment.