Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23723 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Dec 10, 2014
1 parent cf82a10 commit a138e6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Compiler/BackEnd/ExpressionSolve.mo
Expand Up @@ -984,8 +984,8 @@ end preprocessingSolve5;
protected function unifyFunCalls
"
e.g.
smooth() -> if
semiLinear() -> if
smooth() -> if
semiLinear() -> if
author: Vitalij Ruge
"
input DAE.Exp inExp1 "lhs";
Expand Down Expand Up @@ -1028,7 +1028,7 @@ protected function unifyFunCallsWork

else (inExp, true, iT);
end matchcontinue;

end unifyFunCallsWork;


Expand Down Expand Up @@ -1248,7 +1248,7 @@ algorithm
DAE.Type tp;
BackendDAE.Equation eqn;
// abs(f(x)) = g(y) -> f(x) = sign(f(x))*g(y)
case(DAE.CALL(path = Absyn.IDENT(name = "abs"),expLst = {e1}), _)
case(DAE.CALL(path = Absyn.IDENT(name = "abs"),expLst = {e1}), _)
equation
tp = Expression.typeof(e1);
cr = ComponentReference.makeCrefIdent("$TMP_VAR_SOLVE_ABS_FOR_EQN" + intString(uniqueEqIndex) + "_" + intString(iter), tp , {});
Expand All @@ -1266,7 +1266,7 @@ algorithm
exP = Expression.makePureBuiltinCall("$_initialGuess",{e},tp);
e_1 = DAE.IFEXP(DAE.RELATION(exP, DAE.GREATEREQ(tp), DAE.RCONST(0.0),-1,NONE()),DAE.RCONST(1.0),DAE.RCONST(-1.0));
then(e1, Expression.expMul(e_1,Expression.expPow(inExp2,DAE.BINARY(Expression.makeConstOne(tp),DAE.DIV(tp),e2))), true, eqn::ieqnForNewVars,cr ::inewVarsCrefs);

else (inExp1, inExp2, false, ieqnForNewVars, inewVarsCrefs);
end matchcontinue;

Expand Down
2 changes: 1 addition & 1 deletion Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -2998,7 +2998,7 @@ algorithm
eqSystlst = List.appendNoCopy(eqSystlst,resEqs);
tempvars = createTempVarsforCrefs(List.map(solveCr, Expression.crefExp),itempvars);
then
(eqSystlst, uniqueEqIndex,tempvars);
(eqSystlst, uniqueEqIndex,tempvars);

// single equation from if-equation -> 0.0 = if .. then bla else lbu and var is not in all branches
// change branches without variable to var - pre(var)
Expand Down

0 comments on commit a138e6b

Please sign in to comment.