Opened 14 years ago
Last modified 14 years ago
#1288 closed defect (fixed)
Codegen for blocks in models
Reported by: | Willi Braun | Owned by: | Willi Braun |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Code Generation | Version: | 1.6.0 |
Keywords: | Cc: | Willi Braun, |
Description
small model that fails:
block smallBool input Boolean a[:]; output Boolean out[size(a,1)]; algorithm for i in 1:size(a,1) loop out[i] := a[i]; end for; end smallBool; model blocktest smallBool sB(a={true,false}); Boolean out[2]; equation out = sB.out; end blocktest;
with following error message:
blocktest.cpp: In function ‘int functionDAE_output2()’: blocktest.cpp:493: error: expected primary-expression before ‘struct’ blocktest.cpp:493: error: expected ‘)’ before ‘struct’ blocktest.cpp: In function ‘int function_updateDependents()’: blocktest.cpp:629: error: expected primary-expression before ‘struct’ blocktest.cpp:629: error: expected ‘)’ before ‘struct’ blocktest.cpp: In function ‘int function_updateDepend(int&)’: blocktest.cpp:662: error: expected primary-expression before ‘struct’ blocktest.cpp:662: error: expected ‘)’ before ‘struct’
Note:
See TracTickets
for help on using tickets.
Fixed in OM 1.6.0