Opened 5 years ago
Closed 5 years ago
#5655 closed defect (fixed)
Wrong array re-indexing in OMEdit
Reported by: | Andrea Bartolini | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | blocker | Milestone: | 1.14.0 |
Component: | OMEdit | Version: | v1.14.0-dev-nightly |
Keywords: | Cc: | Francesco Casella |
Description
Consider the following (also attached) model:
model test Modelica.Blocks.Math.Sum sum1(nin = 2) annotation(...); Modelica.Blocks.Sources.RealExpression realExpression1 annotation(...); Modelica.Blocks.Sources.RealExpression realExpression2 annotation(...); equation connect(realExpression1.y, sum1.u[1]) annotation(...); connect(realExpression2.y, sum1.u[2]) annotation(...); annotation(...); end test;
it works right...
Now delete the realExpression2
from diagram view, you obtain the following result:
model test Modelica.Blocks.Math.Sum sum1(nin = 2) annotation(...); Modelica.Blocks.Sources.RealExpression realExpression1 annotation(...); equation connect(realExpression1.y, sum1.u[0]) annotation(...) annotation(...); end test;
in which the index f the sum1
input has been changed to 0 by OMEdit.
OMEdit - OpenModelica Connection Editor
Connected to OpenModelica 1.14.0~dev-26758-g8730c27
sysop: Ubuntu 18.04
Attachments (1)
Change History (3)
by , 5 years ago
comment:1 by , 5 years ago
Summary: | Wrong array index re-indexing in OMEdit → Wrong array re-indexing in OMEdit |
---|
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in 11ac152/OpenModelica.