Opened 19 years ago

Last modified 19 years ago

#38 closed defect (fixed)

Matrix constructor as modifier results in missing scalar elements

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: critical Milestone:
Component: Version:
Keywords: Cc: Peter Aronsson, Adrian Pop

Description


Change History (1)

comment:1 by Peter Aronsson, 19 years ago

model test parameter Real x[:,:]=[1;2]; end test;
instantiateModel(test);

"fclass test
parameter Real x[1,1] = 1;
end test;
"

but:
model test parameter Real x[:,:]={{1.0},{2.0}}; end test;

instantiateModel(test)

"fclass test
parameter Real x[1,1] = 1.0;
parameter Real x[2,1] = 2.0;
end test;

Note: See TracTickets for help on using tickets.