From c572a2cabca0339e633eb6ca98fbf0a3bed53497 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 2 Jan 2024 11:58:34 +0100 Subject: asdf: Use fftw_alloc_{real,complex} A little clearer than fftw_malloc(*sizeof) --- libcrystfel/src/indexers/asdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcrystfel/src/indexers/asdf.c b/libcrystfel/src/indexers/asdf.c index f74b9a4c..2222144b 100644 --- a/libcrystfel/src/indexers/asdf.c +++ b/libcrystfel/src/indexers/asdf.c @@ -94,8 +94,8 @@ struct fftw_vars fftw_vars_new() int N = 1024; fftw.N = N; - fftw.in = fftw_malloc(N * sizeof(double)); - fftw.out = fftw_malloc(N * sizeof(fftw_complex)); + fftw.in = fftw_alloc_real(N); + fftw.out = fftw_alloc_complex(N); fftw.p = fftw_plan_dft_r2c_1d(N, fftw.in, fftw.out, FFTW_MEASURE); return fftw; -- cgit v1.2.3