Skip to content

Commit

Permalink
- use noEvent for y = semiLinear(x,sa,s1) -> s1 = if noEvent(x>=0) th…
Browse files Browse the repository at this point in the history
…en sa else sb

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12658 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Aug 24, 2012
1 parent c066aee commit 35fe498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEOptimize.mo
Original file line number Diff line number Diff line change
Expand Up @@ -12204,7 +12204,7 @@ algorithm
// ..
// sn = sn-1
// y = semiLinear(x,sa,sb)
eqn = BackendDAE.EQUATION(s1,DAE.IFEXP(DAE.RELATION(x,DAE.GREATEREQ(DAE.T_REAL_DEFAULT),DAE.RCONST(0.0),-1,NONE()),sa,sb),source);
eqn = BackendDAE.EQUATION(s1,DAE.IFEXP(DAE.CALL(Absyn.IDENT("noEvent"),{DAE.RELATION(x,DAE.GREATEREQ(DAE.T_REAL_DEFAULT),DAE.RCONST(0.0),-1,NONE())},DAE.callAttrBuiltinBool),sa,sb),source);
eqn1 = BackendDAE.EQUATION(y,DAE.CALL(path,{x,sa,sb},attr),source1);
acc = semiLinearOptimize4(explst,(eqn1,index1)::iAcc);
then
Expand Down

0 comments on commit 35fe498

Please sign in to comment.