Opened 6 years ago

Closed 21 months ago

#3182 closed defect (fixed)

Modifications in expandable connector classes

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

Description (last modified by Jesper Mattsson)

When declared members of expandable connectors have modifications, then only one variable from each connect set will keep its modifications.

Example:

    model Expandable33
        expandable connector EC1
            C c(y(start=1));
        end EC1;
        
        expandable connector EC2
            C c(y(start=-1));
        end EC2;

        connector C
            Real x;
            flow Real y;
        end C;
        
        EC1 ec1;
        EC2 ec2;
        C c(y(start=2));
    equation
        connect(ec1, ec2);
        connect(c, ec1.c);
    end Expandable33;

Here ec2.c.y will lose its start value.

This is a part of #3524.

Change History (3)

comment:1 Changed 6 years ago by Jesper Mattsson

Description: modified (diff)
Keywords: #3524. added

comment:2 Changed 2 years ago by Jesper Mattsson

Is this still wrong?

comment:3 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.