Opened 12 years ago
Closed 12 years ago
#2362 closed defect (fixed)
Wrong handling of scalar()
| Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.0 |
| Component: | Frontend | Version: | trunk |
| Keywords: | Cc: |
Description
Based on Modelica.Media.Examples.R134a.R134a1:
function f input Real[:] rs; output Integer i; protected Integer n=scalar(size(rs)) - 1 "Max value"; algorithm i := n; end f; model M Real r = f(fill(1,3)); end M;
This is flattened to: n=size(rs) - 1, which is wrong (should be size(rs,1) if anything).
Change History (2)
comment:1 by , 12 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

Fixed in r17334.