From d085422a351b830be090bda0ef50f63181d4eb33 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 2 Jan 2024 11:12:40 +0100 Subject: asdf: Use FFTW arrays directly We don't need to fish out the arrays and use FFTW's "new array execution" functions: http://fftw.org/fftw3_doc/New_002darray-Execute-Functions.html --- libcrystfel/src/indexers/asdf.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/indexers/asdf.c b/libcrystfel/src/indexers/asdf.c index f6899331..fe2d63e6 100644 --- a/libcrystfel/src/indexers/asdf.c +++ b/libcrystfel/src/indexers/asdf.c @@ -90,9 +90,8 @@ struct tvector { struct fftw_vars fftw_vars_new() { - int N = 1024; - struct fftw_vars fftw; + int N = 1024; fftw.N = N; fftw.in = fftw_malloc(N * sizeof(double)); @@ -374,12 +373,9 @@ static float find_ds_fft(double *projections, int N_projections, double d_max, int i; int N = fftw.N; // number of points in fft calculation - double *in = fftw.in; - fftw_complex *out = fftw.out; - fftw_plan p = fftw.p; for ( i=0; i maxval) { maxval = a; d = i; -- cgit v1.2.3