Opened 9 years ago

Closed 9 years ago

#3651 closed defect (fixed)

Wrong SimCode.SimVar information for statemachine models

Reported by: Niklas Worschech Owned by: Bernhard Thiele
Priority: critical Milestone: Future
Component: Backend Version:
Keywords: statemachine, cpp code generation Cc: Adrian Pop, Niklas Worschech

Description

For statemachine models the SimVar.numArrayElement variable is not correctly generatet. The cpp code generation uses the numArrayElement information to generate code for array variables. e.g for the test model: testsuite\simulation\modelica\statemachines\TicksInState.mo for the model variable smOf.state1.tFrom the corresponding simvar numArrayElement is not set. This leads to an error message in the cpp code generation: Template error: A template call failed (a call with 1 parameter)...
The error message comes from the cpp template function arrayextentDims
where numArrayElement is used.

Change History (2)

comment:1 by Niklas Worschech, 9 years ago

Owner: changed from Bernhard Thiel to Bernhard Thiele
Status: newassigned

comment:2 by Bernhard Thiele, 9 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.