Opened 13 years ago

Closed 4 years ago

Last modified 4 years ago

#1573 closed defect (fixed)

reinit(vector, matrix[index]) is not vectorized properly.

Reported by: Adrian Pop Owned by: Adrian Pop
Priority: high Milestone: 1.14.0
Component: Instantiation Version:
Keywords: Cc: Adrian Pop

Description

Reinit using vectors does not instantiate.

Change History (7)

comment:1 by Martin Sjölund, 13 years ago

Of course it does not vectorize. The spec does not list it as a vectorizable operator :(

comment:2 by Adrian Pop, 13 years ago

Modelica spec 3.3:

reinit(x, expr) ...
In the body of a when clause, reinitializes x with expr at an event instant. x is a Real variable (resp. an array of Real variables, in which case vectorization applies according to Section 12.4.6).

comment:3 by Martin Sjölund, 13 years ago

Ok. It's just the 3.2 text fails to omit reinit from the list of vectorizable operators with function syntax then...

comment:4 by Martin Sjölund, 13 years ago

From https://trac.modelica.org/Modelica/ticket/592#comment:1 it appears that reinit(vector, scalar) should not work after all. It is only intended that reinit(vector,vector) should work. But let's wait to see until the specification text is voted through :)

comment:5 by Dietmar Winkler, 9 years ago

Cc: adrpo, → adrpo
Milestone: Future

comment:6 by Per Östlund, 4 years ago

Resolution: fixed
Status: newclosed

reinit is allowed to be called on arrays according to the current specification, and both the old and the new frontend supports this.

comment:7 by Francesco Casella, 4 years ago

Milestone: Future1.14.0
Note: See TracTickets for help on using tickets.