Skip to content

Commit

Permalink
- if derivative of function does not exist force inline
Browse files Browse the repository at this point in the history
  to get media examp working

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11285 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Mar 4, 2012
1 parent 5e46962 commit 298dabc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Compiler/BackEnd/Derive.mo
Expand Up @@ -626,6 +626,15 @@ algorithm
then
e2;

case (e as DAE.CALL(path = a,expLst = expl),inVariables as (_,_,functions))
equation
// try to inline
(e1,_) = Inline.forceInlineExp(e,(SOME(functions),{DAE.NORM_INLINE(),DAE.NO_INLINE()}),DAE.emptyElementSource/*TODO:Can we propagate source?*/);
// get Derivative function
e2 = differentiateExpTime(e1,inVariables);
then
e2;

case (e as DAE.CALL(path = a,expLst = expl),inVariables)
equation
e_str = ExpressionDump.printExpStr(e);
Expand Down

0 comments on commit 298dabc

Please sign in to comment.