Opened 6 years ago
Closed 6 years ago
#5163 closed defect (fixed)
Array stream variables are not expanded by the NF
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Please check ThermoPower.Test.GasComponents.TestGasValveOpPoint. When flattening with the NF, the following equation is obtained
Valve2.gas.Xi = array(Valve2.inlet.Xi_outflow[$i1] for $i1 in 1:4);
which may explain the failure of the back-end later on. The old FE flattens this to
Valve1.inlet.Xi_outflow[1] = Valve2.inlet.Xi_outflow[1]; Valve1.inlet.Xi_outflow[2] = Valve2.inlet.Xi_outflow[2]; Valve1.inlet.Xi_outflow[3] = Valve2.inlet.Xi_outflow[3]; Valve1.inlet.Xi_outflow[4] = Valve2.inlet.Xi_outflow[4];
Change History (3)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
I tried letting the NF expand all the array constructors, but it made no difference whatsoever. The backend still gives the exact same error. So the issue seems to be something else.
Note:
See TracTickets
for help on using tickets.
We may expand this under some flag, so that the current back-end can handle this, and then later on disable it, as we already did for some other cases.