Opened 19 years ago
Last modified 19 years ago
#70 closed defect (fixed)
The equation simplification applied when flattening has some problems.
Reported by: | Adrian Pop | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Adrian Pop, Adrian Pop |
Description
Change History (3)
comment:1 by , 19 years ago
comment:3 by , 19 years ago
Fixed in SVN revision 2373.
Actually the printing of expressions was wrong.
Note:
See TracTickets
for help on using tickets.
Part of the bug reported by Atya El-Shekh:
(I cannot reproduce the fact that omc generates different code for
different platforms, so here is only the simplification part of the bug)
model BugTest
equation
end BugTest;
Compiling the above model on linux gives the following output:
$ omc +s BugTest.mo
fclass BugTest
equation
end BugTest;
The simplified expression for x is wrong. (-n - 1.0) should be ( -n + 1.0).
Adrian/