Skip to content

Commit

Permalink
Add function clearEqSyst
Browse files Browse the repository at this point in the history
  • Loading branch information
gossen authored and OpenModelica-Hudson committed Jun 30, 2015
1 parent 7f24872 commit ddeca2f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -8215,6 +8215,20 @@ algorithm
outSyst := BackendDAE.EQSYSTEM(orderedVars=inVars, orderedEqs=eqs, m=m, mT=mT, matching=matching, stateSets=stateSets, partitionKind=partitionKind);
end setEqSystVars;

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

public function setEqSystMatching
input BackendDAE.EqSystem inSyst;
input BackendDAE.Matching matching;
Expand Down

0 comments on commit ddeca2f

Please sign in to comment.