Opened 7 years ago
Closed 7 years ago
#4663 closed defect (fixed)
Type issues with start attribute in NF
Reported by: | casella | Owned by: | perost |
---|---|---|---|
Priority: | high | Milestone: | 2.0.0 |
Component: | New Instantiation | Version: | |
Keywords: | Cc: |
Description
Please check
The following error is reported
[/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica /OMCompiler/build/lib/omlibrary/Modelica 3.2.2 /Electrical/MultiPhase.mo:1138:50-1138:66:writable] Error: Type mismatch in binding start = fill(1, motor.smpm.rs.m), expected subtype of Real, got type Integer[motor.smpm.rs.m]
The corresponding declaration is
parameter Modelica.SIunits.Resistance R[m](start=fill(1, m));
so start should have type Real[:] and then automatic conversion from Integer[:] to Real[:] should take place.
Change History (1)
comment:1 Changed 7 years ago by perost
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
This was fixed some time ago, the model now fails due to missing function vectorization.