Skip to content

Commit

Permalink
Add function setSharedOptimica in BackendDAEUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
gossen committed Jul 3, 2015
1 parent d1fdf82 commit 08a8ac2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -8302,6 +8302,23 @@ algorithm
end match;
end setSharedAliasVars;

public function setSharedOptimica
input BackendDAE.Shared inShared;
input list<DAE.Constraint> constraints;
input list<DAE.ClassAttributes> classAttrs;
output BackendDAE.Shared outShared;
algorithm
outShared := match inShared
local
BackendDAE.Shared shared;
case shared as BackendDAE.SHARED()
equation
shared.constraints = constraints;
shared.classAttrs = classAttrs;
then shared;
end match;
end setSharedOptimica;

public function emptyEventInfo
output BackendDAE.EventInfo info;
algorithm
Expand Down

0 comments on commit 08a8ac2

Please sign in to comment.