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 Francesco Casella)

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

Change History (1)

comment:1 by Francesco Casella, 7 years ago

Description: modified (diff)

This is a very common pattern in Modelica.Media, where we often use X[1:nXi].

Note: See TracTickets for help on using tickets.