Skip to content

Commit

Permalink
[Backend] Use the original functionTree instead an empty one
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2193
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Feb 13, 2018
1 parent 92921a4 commit 5cf076a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/SymbolicJacobian.mo
Expand Up @@ -2106,10 +2106,10 @@ algorithm
BackendDAE.ExtraInfo ei;
Integer size;

case(BackendDAE.DAE(shared=BackendDAE.SHARED(cache=cache, graph=graph, info=ei)), {}, _, _, _, _, _, _) equation
case(BackendDAE.DAE(shared=BackendDAE.SHARED(cache=cache, graph=graph, info=ei, functionTree=functions)), {}, _, _, _, _, _, _) equation
jacobian = BackendDAE.DAE( {BackendDAEUtil.createEqSystem(BackendVariable.emptyVars(), BackendEquation.emptyEqns())},
BackendDAEUtil.createEmptyShared(BackendDAE.JACOBIAN(), ei, cache, graph));
then (jacobian, DAE.AvlTreePathFunction.Tree.EMPTY());
then (jacobian, functions);

case( BackendDAE.DAE( BackendDAE.EQSYSTEM(orderedVars=orderedVars, orderedEqs=orderedEqs, matching=BackendDAE.MATCHING(ass2=ass2))::{},
BackendDAE.SHARED(globalKnownVars=globalKnownVars, cache=cache,graph=graph, functionTree=functions, info=ei) ),
Expand Down

0 comments on commit 5cf076a

Please sign in to comment.