Skip to content

Commit

Permalink
[NB] add else-when mapping (#11552)
Browse files Browse the repository at this point in the history
  • Loading branch information
kabdelhak committed Nov 10, 2023
1 parent cfcaf86 commit 16a960f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OMCompiler/Compiler/NBackEnd/Classes/NBEquation.mo
Expand Up @@ -2322,6 +2322,9 @@ public

// ToDo reference eq for lists?
whenBody.when_stmts := List.map(whenBody.when_stmts, function WhenStatement.map(funcExp = funcExp, funcCrefOpt = funcCrefOpt, mapFunc = mapFunc));

// map else when
whenBody.else_when := Util.applyOption(whenBody.else_when, function map(funcExp = funcExp, funcCrefOpt = funcCrefOpt, mapFunc = mapFunc));
end map;

function split
Expand Down

0 comments on commit 16a960f

Please sign in to comment.