Opened 12 years ago
Closed 12 years ago
#2126 closed defect (worksforme)
symmetric code generation error
Reported by: | Owned by: | Per Östlund | |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.0 |
Component: | Code Generation | Version: | trunk |
Keywords: | Cc: | Willi Braun |
Description
following model results in error message given below.
model symTest parameter Integer n =3; Real A[:,:] = symmetric(2*identity(n)-[[0,time,0];[0,0,time];zeros(1,n)]); end symTest;
symTest.c: In function ‘eqFunction_1’: symTest.c:210: warning: passing argument 1 of ‘copy_real_array_data_mem’ from incompatible pointer type symTest.o: In function `eqFunction_1': symTest.c:(.text+0x85c): undefined reference to `symmetric' symTest.o: In function `eqFunction_3': symTest.c:(.text+0xc7c): undefined reference to `symmetric' collect2: ld returned 1 exit status
Change History (3)
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 12 years ago
Priority: | high → normal |
---|
comment:3 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
I have fixed the simplification of the symmetric call in the frontend now, so that the given model works. symmetric is still not implemented in the simulation runtime though, so the real issue remains. There's also a couple of other issues, such as zeros not working with variable inputs.
I've got more important things to fix at the moment though, so the remaining issues will be fixed when I have time or someone yells at me loud enough.