﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3640	Compilation errors for Modelica.Math.FastFourierTransform.Examples.RealFFT1	martin.otter@…	Adrian Pop	"There are the following compilation errors with OpenModelica 1.9.4 dev 663 (last nightly build for Windows) for model Modelica.Math.FastFourierTransform.Examples.RealFFT1 (Modelica trunk; 3.2.2 Beta.1):
{{{
Modelica.Math.FastFourierTransform.Examples.RealFFT1_05evt.o Modelica.Math.FastFourierTransform.Examples.RealFFT1_05evt.c
Modelica.Math.FastFourierTransform.Examples.RealFFT1_functions.c: In function 'omc_Modelica_Math_FastFourierTransform_Internal_rawRealFFT':
Modelica.Math.FastFourierTransform.Examples.RealFFT1_functions.c:51: error: '_work' undeclared (first use in this function)
Modelica.Math.FastFourierTransform.Examples.RealFFT1_functions.c:51: error: (Each undeclared identifier is reported only once
Modelica.Math.FastFourierTransform.Examples.RealFFT1_functions.c:51: error: for each function it appears in.)
}}}

In Modelica.Math.FastFourierTransform.Internal.rawRealFFT the external C-Code of the FFT is called and a work array is used for this:
{{{
protected
  Real work[3*size(u,1) + 2*(div(size(u,1),2)+1)];
  external ""C"" info = ModelicaFFT_kiss_fftr(u, size(u,1), work, size(work,1), amplitudes, phases)
}}}
It seems that array ""work"" is ""somehow"" not included in the generated C-Code

Note, this FFT function is now used in the Modelica_Requirements library for several requirement blocks and in examples."	defect	closed	high	1.9.4	Build Environment		worksforme		Martin.Otter@…
