Skip to content

Commit

Permalink
Add function setEqSystMatrices to BackendDAEUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
gossen authored and OpenModelica-Hudson committed Jul 3, 2015
1 parent afe896e commit 409d49b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -8187,6 +8187,23 @@ algorithm
outSyst := BackendDAE.EQSYSTEM(orderedVars=inVars, orderedEqs=eqs, m=m, mT=mT, matching=matching, stateSets=stateSets, partitionKind=partitionKind);
end setEqSystVars;

public function setEqSystMatrices
input BackendDAE.EqSystem inSyst;
input Option<BackendDAE.IncidenceMatrix> m = NONE();
input Option<BackendDAE.IncidenceMatrix> mT = NONE();
output BackendDAE.EqSystem outSyst;
protected
BackendDAE.Variables vars;
BackendDAE.EquationArray eqs;
BackendDAE.Matching matching;
BackendDAE.StateSets stateSets;
BackendDAE.BaseClockPartitionKind partitionKind;
algorithm
BackendDAE.EQSYSTEM(orderedEqs=eqs, orderedVars=vars, matching=matching, stateSets=stateSets, partitionKind=partitionKind) := inSyst;
outSyst := BackendDAE.EQSYSTEM(orderedVars=vars, orderedEqs=eqs, m=m, mT=mT, matching=matching, stateSets=stateSets, partitionKind=partitionKind);
end setEqSystMatrices;


public function clearEqSyst
input BackendDAE.EqSystem inSyst;
output BackendDAE.EqSystem outSyst;
Expand Down

0 comments on commit 409d49b

Please sign in to comment.