Skip to content

Commit

Permalink
- remove tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12009 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 8, 2012
1 parent 7ce136c commit 3807118
Show file tree
Hide file tree
Showing 5 changed files with 1,810 additions and 1,810 deletions.
8 changes: 4 additions & 4 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -7364,10 +7364,10 @@ protected function traverseBackendDAEExpsWrapper "function: traverseBackendDAEEx
algorithm
outTpl := match(inTpl)
local
DAE.Exp exp,exp1;
Type_a arg,arg1;
FuncExpTravers tfunc;
FuncExpType func;
DAE.Exp exp,exp1;
Type_a arg,arg1;
FuncExpTravers tfunc;
FuncExpType func;
case((exp,(tfunc,func,arg)))
equation
((exp1,arg1)) = tfunc(exp,func,arg);
Expand Down
40 changes: 20 additions & 20 deletions Compiler/BackEnd/IndexReduction.mo
Expand Up @@ -2172,14 +2172,14 @@ public function dumpSystemGraphML
algorithm
_ := match(isyst,ishared,inids)
local
BackendDAE.Variables vars;
BackendDAE.EquationArray eqns;
BackendDAE.IncidenceMatrix m;
BackendDAE.IncidenceMatrixT mt;
GraphML.Graph graph;
list<Integer> eqnsids;
Integer neqns;
array<Integer> vec1,vec2,vec3;
BackendDAE.Variables vars;
BackendDAE.EquationArray eqns;
BackendDAE.IncidenceMatrix m;
BackendDAE.IncidenceMatrixT mt;
GraphML.Graph graph;
list<Integer> eqnsids;
Integer neqns;
array<Integer> vec1,vec2,vec3;
case (BackendDAE.EQSYSTEM(matching=BackendDAE.NO_MATCHING()),_,NONE())
equation
vars = BackendVariable.daeVars(isyst);
Expand All @@ -2196,18 +2196,18 @@ algorithm
();
case (BackendDAE.EQSYSTEM(matching=BackendDAE.MATCHING(ass1=vec1,ass2=vec2)),_,NONE())
equation
vars = BackendVariable.daeVars(isyst);
eqns = BackendEquation.daeEqns(isyst);
(_,m,mt) = BackendDAEUtil.getIncidenceMatrix(isyst,ishared,BackendDAE.NORMAL());
graph = GraphML.getGraph("G",false);
((_,_,graph)) = BackendVariable.traverseBackendDAEVars(vars,addVarGraphMatch,(1,vec1,graph));
neqns = BackendDAEUtil.systemSize(isyst);
eqnsids = List.intRange(neqns);
graph = List.fold2(eqnsids,addEqnGraphMatch,eqns,vec2,graph);
((_,_,_,graph)) = List.fold(eqnsids,addDirectedEdgesGraph,(1,m,vec2,graph));
GraphML.dumpGraph(graph,"");
then
();
vars = BackendVariable.daeVars(isyst);
eqns = BackendEquation.daeEqns(isyst);
(_,m,mt) = BackendDAEUtil.getIncidenceMatrix(isyst,ishared,BackendDAE.NORMAL());
graph = GraphML.getGraph("G",false);
((_,_,graph)) = BackendVariable.traverseBackendDAEVars(vars,addVarGraphMatch,(1,vec1,graph));
neqns = BackendDAEUtil.systemSize(isyst);
eqnsids = List.intRange(neqns);
graph = List.fold2(eqnsids,addEqnGraphMatch,eqns,vec2,graph);
((_,_,_,graph)) = List.fold(eqnsids,addDirectedEdgesGraph,(1,m,vec2,graph));
GraphML.dumpGraph(graph,"");
then
();
case (BackendDAE.EQSYSTEM(matching=BackendDAE.MATCHING(ass1=vec1,ass2=vec2)),_,SOME(vec3))
equation
vars = BackendVariable.daeVars(isyst);
Expand Down
32 changes: 16 additions & 16 deletions Compiler/BackEnd/Matching.mo
Expand Up @@ -6234,22 +6234,22 @@ public function testMatchingAlgorithm
output BackendDAE.EqSystem osyst;
output BackendDAE.Shared oshared;
output BackendDAE.StructurallySingularSystemHandlerArg outArg;
partial function StructurallySingularSystemHandlerFunc
input list<Integer> eqns;
input Integer actualEqn;
input BackendDAE.EqSystem isyst;
input BackendDAE.Shared ishared;
input array<Integer> inAssignments1;
input array<Integer> inAssignments2;
input BackendDAE.StructurallySingularSystemHandlerArg inArg;
output list<Integer> changedEqns;
output Integer continueEqn;
output BackendDAE.EqSystem osyst;
output BackendDAE.Shared oshared;
output array<Integer> outAssignments1;
output array<Integer> outAssignments2;
output BackendDAE.StructurallySingularSystemHandlerArg outArg;
end StructurallySingularSystemHandlerFunc;
partial function StructurallySingularSystemHandlerFunc
input list<Integer> eqns;
input Integer actualEqn;
input BackendDAE.EqSystem isyst;
input BackendDAE.Shared ishared;
input array<Integer> inAssignments1;
input array<Integer> inAssignments2;
input BackendDAE.StructurallySingularSystemHandlerArg inArg;
output list<Integer> changedEqns;
output Integer continueEqn;
output BackendDAE.EqSystem osyst;
output BackendDAE.Shared oshared;
output array<Integer> outAssignments1;
output array<Integer> outAssignments2;
output BackendDAE.StructurallySingularSystemHandlerArg outArg;
end StructurallySingularSystemHandlerFunc;
end matchingAlgorithmFunc;
algorithm
_ :=
Expand Down

0 comments on commit 3807118

Please sign in to comment.