Skip to content

Commit

Permalink
- the End of the WRAPPER Era
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12236 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 29, 2012
1 parent 63ed8ca commit 3ee3517
Show file tree
Hide file tree
Showing 23 changed files with 3,173 additions and 8,394 deletions.
46 changes: 2 additions & 44 deletions Compiler/BackEnd/BackendDAE.mo
Expand Up @@ -117,12 +117,6 @@ uniontype Equation "- Equation"
.DAE.ElementSource source "origin of equation";
end EQUATION;

record ARRAY_EQUATIONWRAPPER
Integer index "index ; index in arrayequations 0..n-1" ;
list< .DAE.Exp> crefOrDerCref "crefOrDerCref ; CREF or der(CREF)" ;
.DAE.ElementSource source "origin of equation";
end ARRAY_EQUATIONWRAPPER;

record ARRAY_EQUATION
list<Integer> dimSize "dimSize ; dimension sizes" ;
.DAE.Exp left "left ; lhs" ;
Expand All @@ -147,24 +141,11 @@ uniontype Equation "- Equation"
.DAE.ElementSource source "origin of algorithm";
end ALGORITHM;

record ALGORITHMWRAPPER
Integer index "Index in algorithms, 0..n-1" ;
list< .DAE.Exp> in_ "Inputs CREF or der(CREF)" ;
list< .DAE.Exp> out "Outputs CREF or der(CREF)" ;
.DAE.ElementSource source "origin of algorithm";
end ALGORITHMWRAPPER;

record WHEN_EQUATION
WhenEquation whenEquation "whenEquation" ;
.DAE.ElementSource source "origin of equation";
end WHEN_EQUATION;

record COMPLEX_EQUATIONWRAPPER "complex equations: recordX = function call(x, y, ..);"
Integer index "Index in algorithm clauses";
list< .DAE.Exp> crefOrDerCref "crefOrDerCref ; CREF or der(CREF)" ;
.DAE.ElementSource source "origin of equation";
end COMPLEX_EQUATIONWRAPPER;

record COMPLEX_EQUATION "complex equations: recordX = function call(x, y, ..);"
Integer size "size of equation" ;
.DAE.Exp left "left ; lhs" ;
Expand Down Expand Up @@ -268,10 +249,7 @@ uniontype Shared "Data shared for all equation-systems"
AliasVariables aliasVars "mappings of alias-variables to real-variables"; // added asodja 2010-03-03
EquationArray initialEqs "initialEqs ; Initial equations" ;
EquationArray removedEqs "these are equations that cannot solve for a variable. for example assertions, external function calls, algorithm sections without effect" ;
array<MultiDimEquation> arrayEqs "arrayEqs ; Array equations" ;
array< .DAE.Algorithm> algorithms "algorithms ; Algorithms" ;
array< .DAE.Constraint> constraints "constraints (Optimica extension)";
array<ComplexEquation> complEqs "array for complex equations";
.DAE.FunctionTree functionTree "functions for Backend";
EventInfo eventInfo "eventInfo" ;
ExternalObjectClasses extObjClasses "classes of external objects, contains constructor & destructor";
Expand Down Expand Up @@ -344,26 +322,6 @@ uniontype AliasVariableType
record NEGATEDALIAS end NEGATEDALIAS;
end AliasVariableType;

public
uniontype MultiDimEquation "- Multi Dimensional Equation"
record MULTIDIM_EQUATION
list<Integer> dimSize "dimSize ; dimension sizes" ;
.DAE.Exp left "left ; lhs" ;
.DAE.Exp right "right ; rhs" ;
.DAE.ElementSource source "the element source";
end MULTIDIM_EQUATION;
end MultiDimEquation;

public
uniontype ComplexEquation "- Complex Equation"
record COMPLEXEQUATION
Integer size "size of equation" ;
.DAE.Exp left "left ; lhs" ;
.DAE.Exp right "right ; rhs" ;
.DAE.ElementSource source "the element source";
end COMPLEXEQUATION;
end ComplexEquation;

public
uniontype CrefIndex "- Component Reference Index"
record CREFINDEX
Expand Down Expand Up @@ -530,10 +488,10 @@ uniontype DAEHandlerJop
end DAEHandlerJop;

public
type DAEHandlerArg = tuple<StateOrder,ConstraintEquations>;
type DAEHandlerArg = tuple<StateOrder,ConstraintEquations,array<list<Integer>>,array<Integer>>;

public
type StructurallySingularSystemHandlerArg = tuple<StateOrder,ConstraintEquations,list<tuple<Integer,Integer,Integer>>,list<tuple<Integer,Integer,Integer>>> "StateOrder,ConstraintEqns,DerivedAlgs,DerivesArrayEqns";
type StructurallySingularSystemHandlerArg = tuple<StateOrder,ConstraintEquations,array<list<Integer>>,array<Integer>> "StateOrder,ConstraintEqns,Eqn->EqnsIndxes,EqnIndex->Eqns";


public
Expand Down
3,008 changes: 735 additions & 2,273 deletions Compiler/BackEnd/BackendDAECreate.mo

Large diffs are not rendered by default.

0 comments on commit 3ee3517

Please sign in to comment.