Opened 11 years ago

Closed 10 years ago

#2739 closed defect (fixed)

Redeclared functions do not get a new name

Reported by: Martin Sjölund Owned by: somebody
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc: Adrian Pop, Per Östlund

Description

In the attached model, there is a redeclare function PSD = .Noise.PSD.PSD_LinearInterpolation(n = 5). In current omc, a call to Noise.PRNG.SampleFreePSD0 will be generated, with 5, 5 added as extra arguments. With the FFrontEnd branch, 1, 1 is generated instead.

Attachments (1)

ComparePSD.mo (15.8 KB ) - added by Martin Sjölund 11 years ago.

Download all attachments as: .zip

Change History (3)

by Martin Sjölund, 11 years ago

Attachment: ComparePSD.mo added

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

Note that this is too many arguments for SampleFreePSD0. I was unable to generate flat code in Dymola to see what it thinks should be generated (too complex model, due to using external functions and the license was borrowed).

comment:2 by Adrian Pop, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in r22600 (well, earlier but now there are 2 tests for it).

Note: See TracTickets for help on using tickets.