Opened 8 years ago
Last modified 8 years ago
#4098 new defect
inconsistent code for array equation
Reported by: | Vitalij Ruge | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Frontend | Version: | |
Keywords: | array equation | Cc: | Mahder Alemseged Gebremedhin |
Description
the following example include the same formulatin but
generate different flatt model
model foo function f input Real x; output Real[2] y; output Real[2] z; algorithm y[1] := 2*x; y[2] := 3*x; z[1] := y[1]*y[2]; z[2] := 3*x; end f; Real [2] y1; Real [2] y2; equation (,y1) = f(time); y2 = f(time).z; end foo;
y2: 2 x single equation
y1: complex equation
It's would be greate if we can standardize this.
Change History (5)
follow-up: 2 comment:1 by , 8 years ago
comment:2 by , 8 years ago
Replying to rfranke:
The model generates:
[foo.mo: 14:8-14:16]: Parse error: Dot operator is not allowed in function calls in current Modelica standards.
I have forget to remove +cseCall
in my Option for OMEdit.
comment:3 by , 8 years ago
comment:5 by , 8 years ago
I just wonder what to do in the backend/codegen/runtime if the frontend issues a parse error?
-- OK, I see, you classified it as frontend problem ...
Note:
See TracTickets
for help on using tickets.
The model generates: