Opened 13 years ago
Closed 13 years ago
#1951 closed defect (fixed)
Array reduction with function returning a tuple does not work
| Reported by: | Adrian Pop | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.0 |
| Component: | Frontend | Version: | trunk |
| Keywords: | Cc: |
Description
For example:
model ArrayTuple
parameter Real[:, 2] pressure_drop = [0, 0; 1, 1];
parameter Boolean anti_symmetric = true;
parameter Integer n = 2;
parameter Real m_flows[n] = {1, 2};
Real x[n-1];
equation
x = array(Modelica.Math.Vectors.interpolate(pressure_drop[:, 1], sign(m_flows[i]) * pressure_drop[:, 2], abs(m_flows[i]), 1) for i in 1:n - 1);
end ArrayTuple;
Note:
See TracTickets
for help on using tickets.

Fixed in r14060.