aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-02 11:58:34 +0100
committerThomas White <taw@physics.org>2024-01-30 10:33:54 +0100
commitc572a2cabca0339e633eb6ca98fbf0a3bed53497 (patch)
tree21a1357b70d60f59a0de4545156ed2d238734ec8 /libcrystfel
parent1f0e73ae7bd898f4ff72a10ecc9452356b7804f1 (diff)
asdf: Use fftw_alloc_{real,complex}
A little clearer than fftw_malloc(*sizeof)
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/indexers/asdf.c4
1 files 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;