Changes between Initial Version and Version 1 of Ticket #4027, comment 4


Ignore:
Timestamp:
2016-08-18T04:58:07Z (9 years ago)
Author:
Rüdiger Franke

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4027, comment 4

    initial v1  
    99}}}
    1010
    11 The C / Cpp code assigns the constant value 0.5 to `b`. This is wrong because the parameter `a` may be changed for the FMU. This is why the final parameter `a` (and `b`) should be calculated in the C / Cpp code.
     11The C / Cpp code assigns the constant value 0.5 to `b`. This is wrong if the value of `p` is changed at runtime. This is why either the final parameter `a` (and `b`) should be calculated in the C / Cpp code or `p` should be evaluated during translation along with `a`. The latter allows the same treatment for `final parameter Real a` and `parameter Real a annotation(Evaluate=true)`.