Opened 11 years ago

Closed 11 years ago

#2714 closed defect (fixed)

Concat in function in non algorithm section

Reported by: Andreas Hofmann Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc:

Description

Hi everyone,

not sure if this is a bug or bad coding.
However, if i have a function with a protected section and concat some arrays to a variable within its declaration omc crashes during simulation.

The problem can be fixed by putting the assignment of the variable within the algorithm section.

Find attached a small example of the problem.

Attachments (2)

foo.mo (529 bytes ) - added by Andreas Hofmann 11 years ago.
bar.mo (344 bytes ) - added by Andreas Hofmann 11 years ago.

Download all attachments as: .zip

Change History (5)

by Andreas Hofmann, 11 years ago

Attachment: foo.mo added

by Andreas Hofmann, 11 years ago

Attachment: bar.mo added

comment:1 by Martin Sjölund, 11 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

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

Related to #2346 (that fix breaks some dependencies in functions)

comment:3 by Martin Sjölund, 11 years ago

Component: Run-timeFrontend
Resolution: fixed
Status: acceptedclosed

Fixed the sorting of variables in functions better than before. Regression test added in r20935.

Note: See TracTickets for help on using tickets.