Opened 7 years ago

Closed 7 years ago

#4680 closed defect (duplicate)

Type error with start modifier in arrays

Reported by: Francesco Casella Owned by: Per Östlund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version:
Keywords: Cc:

Description

Please check https://libraries.openmodelica.org/branches/newInst/Modelica_3.2.2/files/Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.err

The following error is reported:

[Modelica 3.2.2/Blocks/Continuous.mo:1600:22-1600:35:writable] 
Error: Type mismatch in binding start = criticalDamping.x_start,
expected subtype of Real, got type Real[1].

The code in Continuous.mo reads

1593: parameter Real x_start[n]=zeros(n) "Initial or guess values of states";
1600: output Real x[n](start=x_start) "Filter states";

The start attribute should have type Real[1], not Real.

Change History (2)

comment:2 by Per Östlund, 7 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #4663.

Note: See TracTickets for help on using tickets.