Skip to content

Commit

Permalink
- Refactoring
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12532 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Aug 15, 2012
1 parent aaad0c7 commit 748da59
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/BackendQSS.mo
Expand Up @@ -693,7 +693,7 @@ algorithm
/* TODO: Check matrix A for discrete values */
vars_cref = List.intersectionOnTrue(listAppend(states,listAppend(disc,algs)),vars_cref,ComponentReference.crefEqual);
then vars_cref;
end matchcontinue;
end match;
end getRHSVars;

function getInitExp
Expand Down Expand Up @@ -900,7 +900,7 @@ algorithm
/* TODO: Check matrix A for discrete values */
vars_cref = List.intersectionOnTrue(listAppend(states,listAppend(disc,algs)),vars_cref,ComponentReference.crefEqual);
then vars_cref;
end matchcontinue;
end match;

end getDiscRHSVars;

Expand Down
13 changes: 5 additions & 8 deletions Compiler/BackEnd/MathematicaDump.mo
Expand Up @@ -540,11 +540,10 @@ protected function lbinopSymbolMma "Return string representation of logical bina
input DAE.Operator inOperator;
output String outString;
algorithm
outString:=
matchcontinue (inOperator)
outString := match (inOperator)
case (DAE.AND(_)) then " && ";
case (DAE.OR(_)) then " || ";
end matchcontinue;
end match;
end lbinopSymbolMma;

protected function lunaryopSymbolMma "
Expand All @@ -553,10 +552,9 @@ protected function lunaryopSymbolMma "
input DAE.Operator inOperator;
output String outString;
algorithm
outString:=
matchcontinue (inOperator)
outString := match (inOperator)
case (DAE.NOT(_)) then " ! ";
end matchcontinue;
end match;
end lunaryopSymbolMma;

protected function relopSymbolMma "
Expand All @@ -565,8 +563,7 @@ protected function relopSymbolMma "
input DAE.Operator inOperator;
output String outString;
algorithm
outString:=
matchcontinue (inOperator)
outString := matchcontinue (inOperator)
case (DAE.LESS(ty = _)) then " < ";
case (DAE.LESSEQ(ty = _)) then " <= ";
case (DAE.GREATER(ty = _)) then " > ";
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Uncertainties.mo
Expand Up @@ -599,7 +599,7 @@ outEq:=matchcontinue(dae,uncertainVariables)
case (BackendDAE.DAE(BackendDAE.EQSYSTEM(_,_,SOME(m),_,_)::_,_),uncertainVariables)
then
getEquationsWithOneVariable2(arrayList(m),uncertainVariables,1);
end matchcontinue;
end match;
end getEquationsWithOneVariable;

protected function getEquationsWithOneVariable2
Expand Down

0 comments on commit 748da59

Please sign in to comment.