Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit bb86695

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
fix for ticket:4062
- put external objects inside the connection sets
1 parent 0e6d68f commit bb86695

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Compiler/FrontEnd/InstSection.mo

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4379,6 +4379,21 @@ algorithm
43794379
then
43804380
(cache,env,ih,sets_1,dae,graph);
43814381

4382+
// Connection of ExternalObject!
4383+
case (cache,env,ih,sets,pre,
4384+
c1,f1,DAE.T_COMPLEX(complexClassType=ClassInf.EXTERNAL_OBJ(), varLst = {}),_,
4385+
c2,f2,DAE.T_COMPLEX(complexClassType=ClassInf.EXTERNAL_OBJ(), varLst = {}),_,ct,_,_,graph,_)
4386+
equation
4387+
(cache,c1_1) = PrefixUtil.prefixCref(cache,env,ih,pre, c1);
4388+
(cache,c2_1) = PrefixUtil.prefixCref(cache,env,ih,pre, c2);
4389+
4390+
// set the source of this element
4391+
source = ElementSource.createElementSource(info, FGraph.getScopePath(env), pre, (c1_1,c2_1));
4392+
4393+
sets_1 = ConnectUtil.addConnection(sets, c1, f1, c2, f2, inConnectorType, source);
4394+
then
4395+
(cache,env,ih,sets_1,DAE.emptyDae,graph);
4396+
43824397
// Connection of complex connector, e.g. Pin
43834398
case (cache,env,ih,sets,pre,c1,f1,DAE.T_COMPLEX(varLst = l1),_,c2,f2,DAE.T_COMPLEX(varLst = l2),_,ct,_,_,graph,_)
43844399
equation

0 commit comments

Comments
 (0)