Skip to content

Commit

Permalink
- fix coding style
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12220 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 27, 2012
1 parent 3b84ccf commit 0d932bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions Compiler/FrontEnd/CheckModel.mo
Expand Up @@ -28,7 +28,7 @@
* See the full OSMC Public License conditions for more details.
*
*/

encapsulated package CheckModel "
file: CheckModel.mo
package: CheckModel
Expand Down Expand Up @@ -79,11 +79,11 @@ algorithm
(ovarSize,oeqnSize,oeqnslst) := match(inElements,ivarSize,ieqnSize,ieqnslst)
local
DAE.Element elem;
list<DAE.Element> rest,eqns,daeElts;
Integer varSize,eqnSize,size;
DAE.Exp e1,ce;
DAE.ComponentRef cr;
DAE.ElementSource source;
list<DAE.Element> rest,eqns,daeElts;
Integer varSize,eqnSize,size;
DAE.Exp e1,ce;
DAE.ComponentRef cr;
DAE.ElementSource source;
case ({},_,_,_) then (ivarSize,ieqnSize,ieqnslst);

// external Objects
Expand All @@ -99,7 +99,7 @@ algorithm
(varSize,eqnSize,eqns) = countVarEqnSize(rest,ivarSize,ieqnSize,ieqnslst);
then
(varSize,eqnSize,eqns);
// variable Variables
case (DAE.VAR(componentRef=cr,kind = DAE.VARIABLE(),binding=SOME(e1),source=source)::rest,_,_,_)
equation
Expand All @@ -114,21 +114,21 @@ algorithm
ce = Expression.crefExp(cr);
(varSize,eqnSize,eqns) = countVarEqnSize(rest,ivarSize+1,ieqnSize+1,DAE.EQUATION(ce,e1,source)::ieqnslst);
then
(varSize,eqnSize,eqns);
// variable Variables
case (DAE.VAR(kind = DAE.VARIABLE())::rest,_,_,_)
(varSize,eqnSize,eqns);
// variable Variables
case (DAE.VAR(kind = DAE.VARIABLE())::rest,_,_,_)
equation
(varSize,eqnSize,eqns) = countVarEqnSize(rest,ivarSize+1,ieqnSize,ieqnslst);
then
(varSize,eqnSize,eqns);
// discrete Variables
case (DAE.VAR(kind = DAE.DISCRETE())::rest,_,_,_)
equation
(varSize,eqnSize,eqns) = countVarEqnSize(rest,ivarSize+1,ieqnSize,ieqnslst);
then
(varSize,eqnSize,eqns);
(varSize,eqnSize,eqns);

// equations
case((elem as DAE.EQUATION(exp=e1))::rest,_,_,_)
Expand Down Expand Up @@ -280,7 +280,7 @@ algorithm
true = Flags.isSet(Flags.FAILTRACE);
Debug.traceln("- CheckModel.countVarEqnSize failed on: " +& DAEDump.dumpElementsStr({elem}));
then
fail();
fail();
end match;
end countVarEqnSize;

Expand Down Expand Up @@ -708,9 +708,9 @@ algorithm
then
simpleEquations(ea1,ea2,0);

else
then
0;
else
then
0;
end matchcontinue;
end simpleEquation;

Expand Down
2 changes: 1 addition & 1 deletion Compiler/Util/BaseHashSet.mo
Expand Up @@ -364,7 +364,7 @@ algorithm
ValueArray varr;
case((_,varr,_,_,_))
then
valueArrayList(varr);
valueArrayList(varr);
end match;
end hashSetList;

Expand Down

0 comments on commit 0d932bd

Please sign in to comment.