same array size for in- and output in inverse fft function from fftw3

This commit is contained in:
dwarning 2023-07-02 16:16:51 +02:00
parent 40a89b16e6
commit e83fae11bc
1 changed files with 1 additions and 1 deletions

View File

@ -933,7 +933,7 @@ cx_ifft(void *data, short int type, int length, int *newlength, short int *newty
printf("IFFT: Frequency span: %g Hz, input length: %d\n", 1/span*length, length);
printf("IFFT: Time resolution: %g s, output length: %d\n", span/(tpts-1), tpts);
in = fftw_malloc(sizeof(fftw_complex) * (unsigned int) length);
in = fftw_malloc(sizeof(fftw_complex) * (unsigned int) tpts);
out = fftw_malloc(sizeof(fftw_complex) * (unsigned int) tpts);
for (i = 0; i < length; i++) {