Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Add function tree to jacobian dae
Browse files Browse the repository at this point in the history
This fixes a lot of models failing since 5ee6abb
(Enable global homotopy as fallback option by default)
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Aug 2, 2017
1 parent 2e17f15 commit 0b97943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/BackEnd/SymbolicJacobian.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,9 @@ algorithm
print("analytical Jacobians -> generated equations for Jacobian " + inName + " time: " + realString(clock()) + "\n");
end if;

// Add the function tree to the jacobian backendDAE
backendDAE = BackendDAEUtil.setFunctionTree(backendDAE, funcs);

backendDAE = optimizeJacobianMatrix(backendDAE,comref_differentiatedVars,comref_vars);
if Flags.isSet(Flags.JAC_DUMP2) then
print("analytical Jacobians -> generated Jacobian DAE time: " + realString(clock()) + "\n");
Expand Down

0 comments on commit 0b97943

Please sign in to comment.