Opened 15 years ago

Last modified 14 years ago

#1127 closed defect (fixed)

[Magnetic] Check of specialized package fails (from MathCore)

Reported by: Jan Brugård Owned by: Jan Brugård
Priority: high Milestone:
Component: Version:
Keywords: Cc: Jan Brugård,

Description

The following model fails when checking. Similar example is available in Magnetic library version 0.91 (Magnetic.Interfaces)

model TestPackage
  package SI= Modelica.SIunits;
  parameter SI.Length L=1;
end TestPackage;

Error:

Check of TestPackage failed
Error: Class SI.Length not found in scope TestPackage while
instantiating L.
Error: Error occured while flattening model TestPackage

Workaround: Replace "package SI" with "import SI".

Change History (2)

comment:2 by Martin Sjölund, 14 years ago

Fixed in trunk. Probably when lookup was rewritten.

Note: See TracTickets for help on using tickets.