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

Commit 4204ff0

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Handle records in Connector.split.
Belonging to [master]: - #2343 - OpenModelica/OpenModelica-testsuite#915
1 parent ee22481 commit 4204ff0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Compiler/NFFrontEnd/NFConnector.mo

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ protected
177177
Type t;
178178
ComplexType ct;
179179
Option<ComponentRef> aflow;
180+
ClassTree tree;
180181

181182
case Type.COMPLEX(complexTy = ct as ComplexType.CONNECTOR())
182183
algorithm
@@ -190,6 +191,14 @@ protected
190191
then
191192
conns;
192193

194+
case Type.COMPLEX()
195+
algorithm
196+
tree := Class.classTree(InstNode.getClass(ty.cls));
197+
conns := splitImpl2(name, face, source,
198+
arrayList(ClassTree.getComponents(tree)), associatedFlow, conns);
199+
then
200+
conns;
201+
193202
case Type.ARRAY()
194203
algorithm
195204
t := Type.arrayElementType(ty);

0 commit comments

Comments
 (0)