Skip to content

Commit

Permalink
Added differentiation rule for start values
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Sep 26, 2015
1 parent 6b5d3a2 commit c5706c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/BackEnd/Differentiate.mo
Expand Up @@ -558,6 +558,10 @@ algorithm
//print("\nresults to exp: " + se1);
then (res, functionTree);

// differentiate start value
case DAE.CALL(path=Absyn.IDENT(name="$_start"), attr=DAE.CALL_ATTR(ty=tp))
then (Expression.makeConstZero(tp), inFunctionTree);

// differentiate homotopy
// lochel: see #3305 - this is commented out since it breaks Modelica.Fluid.Examples.HeatingSystem.
//case DAE.CALL(path=Absyn.IDENT(name="homotopy"), expLst=actual::_) equation
Expand Down

0 comments on commit c5706c4

Please sign in to comment.