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)
Change History (2)
by , 13 years ago
Attachment: | model example.txt added |
---|
Fixed in revision 11210.