Opened 20 years ago
Last modified 15 years ago
#8 closed defect (fixed)
Rekursiv funktion gcd() med if-uttryck
Reported by: | levsa | Owned by: | levsa |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | levsa, Adrian Pop |
Description
No description
Change History (4)
comment:1 by , 20 years ago
comment:2 by , 18 years ago
This is most probably because the amount of result data is pre-allocated without
considering the extra amount of data produced for events. To fix this we need to
change the pre-allocation to instead write to file during simulation, or to use
a dynamically sized memory block for storing data. If writing to file during
simulation is chosen this also requires a different storage format, since
current format requires whole time vector before begin saved.
This lies outside my interests, perhaps Håkan is intrested in this?
Note:
See TracTickets
for help on using tickets.
OpenModelica bugg: Rekursiv funktion gcd() med if-uttryck verkar inte fungera.
Parsningen verkar inte ha avslutats eftersom det inte kommer något Ok.
Däremot kommer ju en ny prompt. (Kanske skulle varit parse error?)
Error evaluating expr.
# Error, type gcd not found.
# Couldn't find function gcd
# Error, type gcd not found.
# Couldn't find function gcd
# Error, type gcd not found.
# Couldn't find function gcd
Däremot fungerar en annan liknande funktion bra:
Ok
4
algorithm res := u+v; end foo;
Ok
4