Opened 9 years ago

Last modified 4 years ago

#3517 closed defect

wrong cyclic for record structure — at Initial Version

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

For the following model

package cyclic
  record rec
    constant Real a;
    constant 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 (0)

Note: See TracTickets for help on using tickets.