Opened 14 years ago

Last modified 14 years ago

#1238 closed defect (fixed)

Allow several .-modifiers

Reported by: Karin Gustafsson Owned by: Karin Gustafsson
Priority: blocker Milestone: White December
Component: Version:
Keywords: Cc: Karin Gustafsson, Adrian Pop

Description

See the attached models. They are both correct but the stateSelect are set in two diffrent ways, one in the parameters and one in the variables. Only one of them is possible to validate.

The modification
(phi.start=0, phi.stateSelect=StateSelect?.always)
results in the error message:
Multiple modifers in same scope for element phi, from calling scope: inertia1

Setting to major since this is a common way of modifiers and one of our customers have had problems with this kind of models.

Attachments (2)

Model1.mo (4.0 KB ) - added by Karin Gustafsson 14 years ago.
Model2.mo (4.1 KB ) - added by Karin Gustafsson 14 years ago.

Download all attachments as: .zip

Change History (6)

by Karin Gustafsson, 14 years ago

Attachment: Model2.mo added

comment:1 by Karin Gustafsson, 14 years ago

comment:2 by Peter Aronsson, 14 years ago

This is a blocker for us since the model editor produces such modifiers and it is very common in models.

comment:3 by Adrian Pop, 14 years ago

I have a fix for this. I'll check it in after a bit more testing as I want to get rid of the warning too.

comment:4 by Adrian Pop, 14 years ago

solved in revision 7325 in /trunk, will push the changes to the branch tomorrow.

comment:5 by Adrian Pop, 14 years ago

fixed also on the branch revision 7333, added tests 7334.

Note: See TracTickets for help on using tickets.