Opened 6 years ago

Closed 6 years ago

#5513 closed defect (duplicate)

OMEdit doesn't correctly insert "each" statement for arrays

Reported by: crupp@… Owned by: Adeel Asghar
Priority: high Milestone: Future
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

In a new model, if you insert a Modelica.Mechanics.MultiBody.Parts.Body block and set the initialization of r_0.start to true via the GUI, then OMEdit fails to also insert the each statement before the fixed = true modifier.

In the new frontend, this causes the translation error:

[2] 11:31:29 Translation Notification
From here:

[3] 11:31:29 Translation Error
[Modelica.Mechanics.MultiBody.Parts: 657:5-660:72]: Non-array modification ‘true‘ for array component ‘fixed‘, possibly due to missing ‘each‘.

There are two problems here:
1) OMEdit isn't inserting the "each" statement
2) The "From here:" notification is empty, so it is not clear where the problem is coming from

Change History (1)

comment:1 by Francesco Casella, 6 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #5405

Note: See TracTickets for help on using tickets.