Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4718 closed defect (fixed)

Parameter is not evaluated at runtime

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: blocker Milestone: 1.13.0
Component: Run-time Version:
Keywords: Cc: Patrick Täuber, Lennart Ochel, Adrian Pop

Description

y in the following model is never evaluated at run-time. It is part of the BackendDAE structure but it seems the SimCode chooses to not evaluate it. I need something similar for ticket:3539 since now the loadResource call will be ignored.

model M
  function g
    input Integer i;
    output Integer o=i+1;
  algorithm
    assert(false, "abc");
  end g;
  parameter Integer y = g(14);
end M;

Change History (4)

comment:1 by Martin Sjölund, 7 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:2 by Martin Sjölund, 7 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in PR2117

comment:3 by Lennart Ochel, 7 years ago

It would be good to have this example in the test suite.

in reply to:  3 comment:4 by Martin Sjölund, 7 years ago

Replying to lochel:

It would be good to have this example in the test suite.

PR827

Note: See TracTickets for help on using tickets.