Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#3360 closed defect (fixed)

Model flattening fails with enumeration type arrays

Reported by: palm86@… Owned by: Per Östlund
Priority: high Milestone: 1.9.4
Component: Frontend Version: trunk
Keywords: Cc:

Description

The following model demonstrates the issue, but it is probably not limited to connectors:

model MFU
  type E = enumeration(a, b);
  type X = Real;
  connector C
    X x[E]; // Does not work
    //X x[2]; // Does work
  end C;
  model B
    C c;
  end B;
  B b;
end MFU;

Change History (5)

comment:1 by palm86@…, 10 years ago

Well, here is a more sensible example:

model MFU
  type E = enumeration(a, b);
  type X = Real;
  connector C
    Real p;
    flow Real q;
    stream X x[E]; // Does not work
    //stream X x[2]; // Does work
  end C;
  model B
    C c;
  end B;
  B b;
end MFU;

comment:2 by Per Östlund, 10 years ago

Owner: changed from somebody to Per Östlund
Status: newaccepted

comment:3 by Per Östlund, 10 years ago

Component: UnknownFrontend
Resolution: fixed
Status: acceptedclosed

Fixed in d084a77e39/OMCompiler. The nightly Linux builds are working again too, in case you haven't seen that yet.

comment:4 by Dietmar Winkler, 9 years ago

Milestone: Futurepre1.9.4

It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.

comment:5 by Martin Sjölund, 7 years ago

Milestone: pre1.9.41.9.4

Removing the pre1.9.4 milestone in favor of 1.9.4.

Note: See TracTickets for help on using tickets.