Changes between Version 2 and Version 3 of Ticket #6067


Ignore:
Timestamp:
2020-07-26T23:16:54Z (4 years ago)
Author:
Francesco Casella
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6067 – Description

    v2 v3  
    4848However, setting the annotation explicitly on each component of the record is a bit inconvenient. One would like to set the annotation once and for all for the entire record. According to [https://specification.modelica.org/v3.4/Ch18.html#annotations-for-code-generation Section 18.3] of the specification, I understand the effect should be the same. Unfortunately the NF basically ignores the annotation and does not evaluate the parameters in the record.
    4949
    50 This feature is needed to run Modelica models written with matrix formulations, where the matrix parameters are mostly filled in with zeros. In this case, it is absolutely necessary to evaluate the matrix-vector products, as shown in the above example, otherwise the generate code may contain a ludicrous number of useless terms, that should be removed up front since {{{0*x = 0}}} no matter what the value of {{{x}}} is.
     50This feature is needed to run Modelica models written with matrix/tensor formulations, where the matrix parameters are mostly filled in with zeros. In this case, it is absolutely necessary to evaluate the matrix-vector products, as shown in the above example, otherwise the generate code may contain a ludicrous number of useless terms, that should be removed up front since {{{0*x = 0}}} no matter what the value of {{{x}}} is.
    5151
    5252@perost, could you please fix that ASAP as you return from you vacation? Thanks!