Opened 7 years ago

Closed 7 years ago

#4831 closed defect (fixed)

Issue with non-scalar subs in NF

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 (2)

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].

comment:2 by Per Östlund, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in 0ac88106.

Note: See TracTickets for help on using tickets.