Opened 15 years ago

Closed 9 years ago

#1053 closed defect (fixed)

[Tiller] No constant binding for variable num (problem with record?) (from MathCore)

Reported by: krsta Owned by: krsta
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc: krsta

Description

Build fails when simulating the model BookExamples.Chapter5.TestComplexWave. I do not really understand the error message, but it says "No constant binding for variable num in scope BookExamples.Chapter5.TestComplexWave.Data".

As data is a record I guess that the error might have something to do with this.

record Data
      constant Integer num "Number of waves";
    Real a[num] "Wave amplitudes";
    Modelica.SIunits.Frequency f[num] "Wave frequencies";
    Modelica.SIunits.Angle phase[num] "Wave phase offset";
  end Data;

Attachments (1)

TestComplexWaveTotal.mo (32.9 KB) - added by brugard 14 years ago.
This is the example from Tillers book.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by brugard

This is the example from Tillers book.

comment:2 Changed 9 years ago by perost

  • Cc changed from krsta, to krsta
  • Component set to Backend
  • Resolution set to fixed
  • Status changed from assigned to closed

This seems to have been fixed some time ago.

Note: See TracTickets for help on using tickets.