Opened 13 years ago

Last modified 13 years ago

#1700 closed defect (fixed)

error with function sum

Reported by: mohamed Owned by: mohamed
Priority: high Milestone:
Component: Version:
Keywords: Cc: mohamed,

Description

I found a problem using open medelica 1.8.1(last version).

The problem is the use of the modelica function sum().In fact, sum(v) has to return a real type,knowing
that v is a vector of reals.
But,when apealing a function containing the {sum()} by another model,I have the following error generated:

Message obtained when instantiating the model with OMshell 1.8.1:
"
Error: Type mismatch in assignment in somme := sum(v) of Real := Real[taille]
"

I have to mention that,when using  the same model with the older version 1.7,I didn't find this error.

Attached please find a model that reproduces this error.

Attachments (1)

model example.txt (343 bytes) - added by mohamed 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by mohamed

comment:1 Changed 13 years ago by perost

Fixed in revision 11210.

Note: See TracTickets for help on using tickets.