Opened 10 years ago
Last modified 10 years ago
#2820 accepted defect
initialization of discrete states
Reported by: | Lennart Ochel | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Backend | Version: | trunk |
Keywords: | Cc: |
Description
The initialization problem of the following model is not handled correctly:
model PreMatrix Integer x[2,2] = integer(time*fill(1,2,2)); Integer y[2,2]; algorithm for i in 1:size(x,1),j in 1:size(x,2) loop y[i,j] := pre(x[i,j]); end for; end PreMatrix;
The initialization passes without any message, but there should be some warnings about missing fixed start attribute for discrete states:
Warning: Assuming fixed start value for the following 4 variables: x[2,2]:DISCRETE(fixed = false ) .PreMatrix, .Integer type: Integer x[2,1]:DISCRETE(fixed = false ) .PreMatrix, .Integer type: Integer x[1,2]:DISCRETE(fixed = false ) .PreMatrix, .Integer type: Integer x[1,1]:DISCRETE(fixed = false ) .PreMatrix, .Integer type: Integer
Note:
See TracTickets
for help on using tickets.