Opened 13 years ago

Last modified 7 years ago

#1575 new defect

Really bad code generation for parameter arrays set via a function call...

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: Future
Component: Simulation Code Generation Version:
Keywords: Cc: Adrian Pop

Description

This model:

model Bad
 parameter Real x[10000] = fcall(constants);
end Bad;

generates really bad code that calls fcall 10000 times and then sets the x for that index.

Change History (3)

comment:1 by Adrian Pop, 13 years ago

Cc: adrpo, → adrpo
Last edited 13 years ago by Adrian Pop (previous) (diff)

comment:2 by Martin Sjölund, 12 years ago

Milestone: Future

comment:3 by Francesco Casella, 7 years ago

See also #1283 and references therein

Note: See TracTickets for help on using tickets.