Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Belonging to [master]: - OpenModelica/OMCompiler#2429 - OpenModelica/OpenModelica-testsuite#943
- Loading branch information
1 parent
ce77458
commit 678ea02
Showing
2 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// name: InnerOuter9 | ||
// keywords: | ||
// status: correct | ||
// cflags: -d=newInst | ||
// | ||
|
||
model PrescribedPump | ||
extends PartialPump; | ||
end PrescribedPump; | ||
|
||
partial model PartialPump | ||
PartialHeatTransfer heatTransfer; | ||
end PartialPump; | ||
|
||
partial model PartialHeatTransfer | ||
parameter Real T_ambient = system.T_ambient; | ||
outer System system; | ||
end PartialHeatTransfer; | ||
|
||
model System | ||
parameter Real T_ambient = 293.15; | ||
end System; | ||
|
||
model InnerOuter9 | ||
PrescribedPump pumps; | ||
inner System system; | ||
end InnerOuter9; | ||
|
||
|
||
// Result: | ||
// class InnerOuter9 | ||
// parameter Real pumps.heatTransfer.T_ambient = system.T_ambient; | ||
// parameter Real system.T_ambient = 293.15; | ||
// end InnerOuter9; | ||
// 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