Opened 6 years ago

Closed 6 years ago

#4968 closed defect (fixed)

Issues with array package constants in Modelica.Media with NF

Reported by: casella Owned by: perost
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas. The following error is reported:

[Modelica 3.2.2/Media/IdealGases/Common/package.mo:10:3-10:31:writable]
Notification: From here:
[Modelica 3.2.2/Media/IdealGases/Common/package.mo:1307:5-1307:67:writable] Error:
Constant Medium.data[j].MM is used without having been given a value.

Change History (2)

comment:1 Changed 6 years ago by casella

The error is now:

[Modelica 3.2.2/Media/IdealGases/Common/package.mo:18:3-18:43:writable]
Notification: From here:
[Modelica 3.2.2/Media/IdealGases/Common/package.mo:650:5-650:17:writable] Error:
Constant Medium.data.R is used without having been given a value.

so it still affects arrays of records of package constants, though in a slighly different way.

comment:2 Changed 6 years ago by perost

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 99c347e. At least some of the Media models affected by this issue now simulate, but some models like the one in the description fail during compilation because of #4995.

Note: See TracTickets for help on using tickets.