Changes between Initial Version and Version 4 of Ticket #3997


Ignore:
Timestamp:
2016-07-18T07:02:40Z (9 years ago)
Author:
Rüdiger Franke
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3997

    • Property Cc Vitalij Ruge added
    • Property Milestone Future1.10.0
    • Property Component *unknown*Backend
    • Property Owner changed from somebody to Lennart Ochel
  • Ticket #3997 – Description

    initial v4  
    55introduces these annotations.
    66
    7 In some models the compilation fails due to missing identifier `xx` now. This comes from inlining:
     7In some models the compilation fails due to missing identifier `xx` now. This comes from inlining `PhaseSystems.ThreePhase_dq0.jj`. See an example:
    88{{{#!mo
    9 within PhaseSystems.ThreePhase_dq0;
    10     redeclare function jj "Vectorized version of j"
    11       input Real[:,:] xx "array of voltage or current vectors";
    12       output Real[size(xx,1),size(xx,2)] yy "array of rotated vectors";
    13     algorithm
    14       yy := cat(1, {-xx[2,:], xx[1,:]}, zeros(size(xx,1)-2, size(xx,2)));
    15       annotation(Inline=true);
    16     end jj;
     9model InlineMatrixFunction
     10  function jj "Vectorized version of j"
     11    input Real[:,:] xx "array of voltage or current vectors";
     12    output Real[size(xx,1),size(xx,2)] yy "array of rotated vectors";
     13  algorithm
     14    yy := cat(1, {-xx[2,:], xx[1,:]}, zeros(size(xx,1)-2, size(xx,2)));
     15    annotation(Inline=true);
     16  end jj;
     17  Real[3, 1] v = {{1}, {2}, {3}};
     18  Real[3, 1] jv = jj(v);
     19end InlineMatrixFunction;
    1720}}}
    1821See e.g.: