Skip to content

Commit

Permalink
Use singleton records without matching
Browse files Browse the repository at this point in the history
This is demonstrating the new language features from 41d43d5.
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jul 3, 2015
1 parent 0693901 commit 4306540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
10 changes: 2 additions & 8 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -8096,15 +8096,9 @@ end setFunctionTree;
public function setEqSystEqs
input BackendDAE.EqSystem inSyst;
input BackendDAE.EquationArray inEqs;
output BackendDAE.EqSystem outSyst;
output BackendDAE.EqSystem syst = inSyst;
algorithm
outSyst := match inSyst
local
BackendDAE.EqSystem syst;
case syst as BackendDAE.EQSYSTEM()
algorithm syst.orderedEqs := inEqs;
then syst;
end match;
syst.orderedEqs := inEqs;
end setEqSystEqs;

public function setEqSystVars
Expand Down
5 changes: 1 addition & 4 deletions Compiler/BackEnd/BackendEquation.mo
Expand Up @@ -1264,11 +1264,8 @@ public function equationAddDAE "author: Frenkel TUD 2011-05"
input BackendDAE.Equation inEquation;
input BackendDAE.EqSystem inEqSystem;
output BackendDAE.EqSystem outEqSystem;
protected
BackendDAE.EquationArray eqs;
algorithm
BackendDAE.EQSYSTEM(orderedEqs=eqs) := inEqSystem;
outEqSystem := BackendDAEUtil.setEqSystEqs(inEqSystem, addEquation(inEquation, eqs));
outEqSystem := BackendDAEUtil.setEqSystEqs(inEqSystem, addEquation(inEquation, inEqSystem.orderedEqs));
outEqSystem := BackendDAEUtil.setEqSystMatching(outEqSystem, BackendDAE.NO_MATCHING());
end equationAddDAE;

Expand Down

0 comments on commit 4306540

Please sign in to comment.