Opened 2 years ago

#5426 assigned defect

Name lookup when connecting arrays with inner/outer relations

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:


The following model does not flatten correctly. Easy fix is to fix the index handling in findCell(). The best fix is probably to expand the array expression using getArray(), instead of using the custom array expansion in InstAccess.connectTo:

        connector C = Real;
        model R
            C[1] c;
        end R;
        model M
            outer R r;
        end M;
        model A
            inner R r;
            M[1] m;
            C[1,1] c;
            connect(m.r.c, c);
        end A;
        A[2] a;

Change History (0)

Note: See TracTickets for help on using tickets.