Skip to content

Commit

Permalink
[Janitor mode] Fix tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18176 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Nov 18, 2013
1 parent 1447779 commit 95257fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Compiler/BackEnd/Differentiate.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1530,17 +1530,17 @@ algorithm
(res2, funcs);

// der(semiLinear(x,a,b)) = if (x>=0) then a*x else b*x -> if (x>=0) then da*x+a*dx else db*x+b*dx
case ("semiLinear", {e,e1,e2}, DAE.CALL_ATTR(ty=tp), _, _, _, _)
equation
case ("semiLinear", {e,e1,e2}, DAE.CALL_ATTR(ty=tp), _, _, _, _)
equation
(res, funcs) = differentiateExp(e, inDiffwrtCref, inInputData, inDiffType, inFunctionTree);
(res1, funcs) = differentiateExp(e1, inDiffwrtCref, inInputData, inDiffType, funcs);
(res2, funcs) = differentiateExp(e2, inDiffwrtCref, inInputData, inDiffType, funcs);
res1 = Expression.expAdd(Expression.expMul(res1, e),Expression.expMul(e1, res));
res2 = Expression.expAdd(Expression.expMul(res2, e),Expression.expMul(e2, res));
(res, _) = Expression.makeZeroExpression(Expression.arrayDimension(tp));
res = DAE.RELATION(e, DAE.GREATEREQ(tp), res, -1, NONE());
then
(DAE.IFEXP(res, res1, res2), funcs);
then
(DAE.IFEXP(res, res1, res2), funcs);

case ("transpose", expl, DAE.CALL_ATTR(ty=tp), _, _, _, _)
equation
Expand Down

0 comments on commit 95257fb

Please sign in to comment.