Opened 4 weeks ago

Closed 4 weeks ago

#5864 closed defect (fixed)

Partial variability propagation of temp assign if equation

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

Description

The model below becomes structurally singular

        record R
            Real x1;
            Real x2;
        end R;
        function f
            input Real x1;
            input Real x2;
            output R r = R(x1,x2);
        algorithm
            annotation(Inline=false);
        end f;
        
        
        R r = if time > 1 then f(c,time) else f(time,c);
        Real c = 1;

Change History (2)

comment:1 Changed 4 weeks ago by Jonathan Kämpe

r13817: Fixed bug where empty array subscripts added during scalarization lead to c-compilation error.
r13822: Now printing empty array subscripts in order to detect them in tests. Fixed a couple of occurences.
r13845: Minor refactoring
r13846: Merge to trunk. Fixed bug where empty array subscripts added during scalarization lead to c-compilation error.

comment:2 Changed 4 weeks ago by Jonathan Kämpe

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.