Opened 5 years ago
Closed 5 years ago
#6031 closed defect (worksforme)
Ragged dimensions are not yet supported
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.16.0 |
| Component: | New Instantiation | Version: | |
| Keywords: | ragged dimensions | Cc: |
Description
Hello,
I want to produce an array of components. Each component exist of an array with size. Now I want to instanziate an array of component with different array sizes "n". OpenModelica says "ragged dimensions are not yet supported.
Example
model test
model Dummy
parameter Integer n;
Real x[n] = 1:n;
end Dummy;
model M
Dummy d[2](n={2, 3});
Real x; // Added to show an access
equation
x = d[2].x[2];
end M;
M m;
end test;
Why is this not possible? Would be really usefull for my application.
Change History (1)
comment:1 by , 5 years ago
| Component: | *unknown* → New Instantiation |
|---|---|
| Milestone: | Future → 1.16.0 |
| Resolution: | → worksforme |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

@lukas, which version of OMC are you using? You may try the 1.16.0-dev.03 stable release, which is able to run this model of yours.