Skip to content

Commit

Permalink
-Fixed bug in instantiation of external objects. Even thought they do…
Browse files Browse the repository at this point in the history
… not generate equations, the connection set must be propagated through it. Before it returned emtpy set.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5634 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Jun 8, 2010
1 parent 605ca5b commit 44088dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Compiler/Inst.mo
Expand Up @@ -1224,10 +1224,10 @@ algorithm
dae1_1 = DAEUtil.addComponentType(dae1, fq_class);
callscope_1 = isTopCall(callscope);
reportUnitConsistency(callscope_1,store);
//print("in class ");print(n);print(" generate equations for sets:");print(Connect.printSetsStr(csets_1));print("\n");
//print("in class ");print(n);print(" generate equations for sets:");print(ConnectUtil.printSetsStr(csets_1));print("\n");
//InnerOuter.checkMissingInnerDecl(dae1_1,callscope_1);
(csets_1, _) = InnerOuter.retrieveOuterConnections(cache,env_3,ih,pre,csets_1,callscope_1);
// print("updated sets: ");print(Connect.printSetsStr(csets_1));print("\n");
//print("updated sets: ");print(ConnectUtil.printSetsStr(csets_1));print("\n");
(dae2,graph) = ConnectUtil.equations(csets_1,pre,callscope_1,graph);
(cache,dae3) = ConnectUtil.unconnectedFlowEquations(cache, csets_1, dae1, env_3, pre, callscope_1, {});
dae1_1 = updateTypesInUnconnectedConnectors(dae3,dae1_1);
Expand Down Expand Up @@ -2878,7 +2878,7 @@ algorithm
true = isExternalObject(els);
(cache,env,ih,dae,ci_state) = instantiateExternalObject(cache,env,ih,els,impl);
then
(cache,env,ih,store,dae,Connect.emptySet,ci_state,{},NONE,NONE,NONE,graph);
(cache,env,ih,store,dae,csets,ci_state,{},NONE,NONE,NONE,graph);

// This rule describes how to instantiate an explicit class definition
case (cache,env,ih,store,mods,pre,csets,ci_state,className,
Expand Down

0 comments on commit 44088dd

Please sign in to comment.