Opened 13 years ago

Closed 12 years ago

#1682 closed defect (fixed)

records with array declation containing size fails when using record constructors

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: blocker Milestone:
Component: Backend Version:
Keywords: Cc: Peter Aronsson

Description

The following model doesn't work:
{{{ model test

record Distribution

String name;

Real params[:];

String paramNames[size(params,1)];

end Distribution;

parameter Distribution d =  Distribution("normal",{0,0.1},{"sigma","my"});

end test;}}}

But if you replace the size(params,1) with ':' in the paramNames declaration it works fine.

Change History (1)

comment:1 by Per Östlund, 12 years ago

Cc: petar, → petar
Component: Backend
Resolution: fixed
Status: newclosed

This issue seems to have been fixed, the model passes through all stages and simulates for me.

Note: See TracTickets for help on using tickets.