Opened 14 years ago

Last modified 14 years ago

#1345 closed defect (fixed)

Wrong code generation when more than one external objects are defined

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone:
Component: Simulation Code Generation Version:
Keywords: Cc: Adrian Pop, Adrian Pop, Frenkel TUD, Willi Braun

Description

This is a bug in code generation for external object interface reported by Thomas Kaden (thomas DOT kaden AT tu-dresden DOT de). His email is below.

\
I am using OpenModelica with external objects / function interface.
External functions work very well.

It works well if I create one instance of an external object (creating a matrix of 512 by 512 element).
If I create two or more instances, the simulation fails.

I assume it could be a bug in assigning adresses as I could see in the .cpp code of the simulation model:

    #define $mymatrix2 localData->extObjs[0]
    #define $mymatrix localData->extObjs[0]


Any Idea if or how that can be fixed?
If you need further information or files please let me know.

Change History (1)

comment:1 by Jens Frenkel, 14 years ago

  • resolved in revision 6823
Note: See TracTickets for help on using tickets.