Opened 9 years ago

Closed 4 years ago

#3517 closed defect (fixed)

wrong cyclic for record structure

Reported by: Vitalij Ruge Owned by: somebody
Priority: high Milestone: 1.16.0
Component: New Instantiation Version:
Keywords: Cc: Mahder Alemseged Gebremedhin, Adrian Pop, Martin Sjölund

Description (last modified by Vitalij Ruge)

For the following model

package cyclic
  record rec
    parameter Real a;
    parameter Real b;
  end rec;

  model m
    parameter rec A(a = B.a, b = 1);
    parameter rec B(a = -1, b = A.b);
  end m;
end cyclic;

we find a cycles for m.

expect flattering without cycles:

  model m
    parameter Real B.a = -1;
    parameter Real A.a = B.a;
    parameter Real A.b = 1;
    parameter Real B.b = A.b;
  end m;

Change History (3)

comment:1 by Vitalij Ruge, 9 years ago

Cc: Mahder Alemseged Gebremedhin Adrian Pop Martin Sjölund added

comment:2 by Vitalij Ruge, 9 years ago

Description: modified (diff)

comment:3 by Per Östlund, 4 years ago

Component: FrontendNew Instantiation
Milestone: Future1.16.0
Resolution: fixed
Status: newclosed

Works fine in the new frontend.

Note: See TracTickets for help on using tickets.