Opened 11 years ago

Closed 11 years ago

#1950 closed defect (fixed)

symmetric: failed to elaborate expression

Reported by: cschubert Owned by: sjoelund.se
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: symmetric failed to elaborate expression Cc: adrpo

Description

It seems that the Modelica builtin function 'symmetric' is missing.
Running the model

model test_symmetric
	Real A[2,2] = [[1,2]; 
	               [3,4]];
	Real B[:,:] = symmetric(A);
end test_symmetric;

yields

Error: Failed to elaborate expression: symmetric(A)
Error occurred while flattening model test_symmetric

Attachments (3)

symmetric.mo (121 bytes) - added by cschubert 11 years ago.
symmetric.2.mo (121 bytes) - added by cschubert 11 years ago.
symmetric.mos (108 bytes) - added by cschubert 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by cschubert

Changed 11 years ago by cschubert

Changed 11 years ago by cschubert

comment:1 Changed 11 years ago by sjoelund.se

  • Status changed from new to accepted

comment:2 Changed 11 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r14075. Flattening testcase added, ExpressionSimplify handles it. If it is needed in generated code, someone working in the backend should add it.

Note: See TracTickets for help on using tickets.