﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3182	dimension size of function calls	Volker Waurich	somebody	"Hi,

The dimension of an array-equation with (external) functions can occasionally be evaluated. See example model:
{{{
package funcTest
  
  function func
    input Real[n] arrIn;
    input Integer n;
    output Real[n] arrOut;
  external ""C"" foo(arrIn,arrOut);
  end func;

  model funcDimension
    parameter Integer n1 = 2;
    Real x[n1], x1[n1];
    Real y;
  equation 
    for i in 1:n1 loop
      x1[i] = time;
    end for;
    x = func(x1,n1);
    der(y) = x[1];
  end funcDimension;

end funcTest;
}}}

+d=dumpSimCode tells us that 
{{{
8: x=funcTest.func(x1, 2)[Real[:] ]
}}}
the dimension of the arrayequation is unknown but actually, this could be evaluated with the help of the function declaration to {{{n}}} i.e. {{{n1}}} and even {{{2}}} (if we evaluate parameter).

"	defect	new	high	Future	Frontend	trunk		functions, array dimension	Per Östlund Martin Sjölund Adrian Pop Niklas Worschech
