Opened 7 years ago
Last modified 7 years ago
#4831 closed defect
Issue with non-scalar subs in NF — at Version 1
Reported by: | Francesco Casella | Owned by: | Per Östlund |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description (last modified by )
Please check Modelica.Media.Examples.SimpleLiquidWater. The following error is reported
[OMCompiler/Compiler/NFFrontEnd/NFExpression.mo:598:7-601:38:writable] Error: Internal error NFExpression.applySubscript: Application of non-scalar subs on expressoins not implemented. Exp: {1.0}, Sub: 1:0
In this case 1:0 means empty, because the fluid is pure. In other cases a similar problem takes place with non-empty non-scalar sub, e.g. in Modelica.Media.Examples.TestOnly.FlueGas
Note:
See TracTickets
for help on using tickets.
This is a very common pattern in Modelica.Media, where we often use
X[1:nXi]
.