Opened 10 years ago
#3044 new discussion
warn if one tries to override secondary parameters
Reported by: | Lennart Ochel | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Run-time | Version: | trunk |
Keywords: | Cc: | Adrian Pop, Martin Sjölund |
Description
I think the simulation should display a warning at least if one tries to override secondary parameters.
Please, checkout the following example:
loadString(" model Test Real y; parameter Real p = 1; parameter Real q = p; equation y = q + time; end Test; "); getErrorString(); simulate(Test, simflags="-lv=LOG_SOTI"); getErrorString(); val(q, 0.0); getErrorString(); val(y, 0.0); getErrorString(); simulate(Test, simflags="-lv=LOG_SOTI -override=q=2"); getErrorString(); val(q, 0.0); getErrorString(); val(y, 0.0); getErrorString();
q
will be 1
(actually p
) for both cases. Any comments?
Note:
See TracTickets
for help on using tickets.