Opened 5 years ago

Closed 21 months ago

#3799 closed defect (fixed)

Array stream variables

Reported by: Jesper Mattsson Owned by: Jesper Mattsson
Priority: major Milestone: Pending
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:

Description

Connectors with array stream variables are not handled correctly.

Example:

model Test
    connector C
        Real p;
        flow Real f;
        stream Real[2] s;
    end C;
    
    model A
        C c;
    end A;
    
    A a1(c(s={1,2}, p=4));
    A a2(c(s={3,4}));
    C c;
    Real[2] x1 = inStream(a1.c.s);
    Real[2] x2 = inStream(a2.c.s);
    Real[2] x3 = inStream(c.s);
equation
    connect(a1.c, a2.c);
    connect(a1.c, c);
end Test;

Change History (2)

comment:1 Changed 2 years ago by Jesper Mattsson

Is this still wrong?

comment:2 Changed 21 months ago by Jesper Mattsson

Resolution: fixed
Status: newclosed

This has been fixed in other tickets.

Note: See TracTickets for help on using tickets.