-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix Typing.checkConnectorTypeBalance by using the instance parent instead of the direct parent when checking if a component is inside a connector or not. - Remove non-present variables in expandable connectors before collecting unassigned flow variables, to avoid generating equations for non-existent variables. - Remove unused function Typing.checkConnectorType.
- Loading branch information
Showing
4 changed files
with
32 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
testsuite/flattening/modelica/scodeinst/ExpandableConnector10.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// name: ExpandableConnector10 | ||
// keywords: expandable connector | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
// | ||
|
||
connector FluidPort | ||
flow Real m_flow; | ||
Real p; | ||
stream Real h_outflow; | ||
end FluidPort; | ||
|
||
connector FluidPort_a | ||
extends FluidPort; | ||
end FluidPort_a; | ||
|
||
expandable connector Bus | ||
FluidPort_a port_1; | ||
end Bus; | ||
|
||
model ExpandableConnector10 | ||
Bus bus; | ||
end ExpandableConnector10; | ||
|
||
// Result: | ||
// class ExpandableConnector10 | ||
// end ExpandableConnector10; | ||
// endResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters