Opened 7 years ago

Closed 7 years ago

#4662 closed defect (fixed)

pre() does not return the correct type

Reported by: Francesco Casella Owned by: Mahder Alemseged Gebremedhin
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.IntegerNetwork1.err

The following error is reported:

Error: Cannot resolve type of expression
' pre(triggeredAdd.y) + triggeredAdd.u '.
The operands have types ' <PodCref> + Integer ' in component: Addition operations involving an array and a scalar are not valid in Modelica. Try using elementwise operator '.+'.

Why is pre(triggeredAdd.y) of type <PodCref> and not Integer?

Change History (3)

comment:1 by Per Östlund, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in 117eefb.

Last edited 7 years ago by Per Östlund (previous) (diff)

comment:2 by Per Östlund, 7 years ago

Resolution: fixed
Status: closedreopened

comment:3 by Per Östlund, 7 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in aa363fe. The model now fails in NFScalarize for some unknown reason.

Note: See TracTickets for help on using tickets.