From d1bc906bc337c5b82cef902f55cbe472a0dd30d5 Mon Sep 17 00:00:00 2001 From: Chichi Lalescu <clalesc1@jhu.edu> Date: Mon, 23 Feb 2015 10:14:03 -0500 Subject: [PATCH] add a small comment --- src/Morton_shuffler.cpp | 1 + src/field_descriptor.cpp | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Morton_shuffler.cpp b/src/Morton_shuffler.cpp index 8542598e..e8e6d992 100644 --- a/src/Morton_shuffler.cpp +++ b/src/Morton_shuffler.cpp @@ -57,6 +57,7 @@ int Morton_shuffler::shuffle( float *a, const char *base_fname) { + // TODO: can this be done in-place? // shuffle into z order ptrdiff_t z, zz; int rid, zid; diff --git a/src/field_descriptor.cpp b/src/field_descriptor.cpp index 6c5cf1d8..af168d0a 100644 --- a/src/field_descriptor.cpp +++ b/src/field_descriptor.cpp @@ -238,7 +238,7 @@ int field_descriptor::transpose( } int field_descriptor::interleave( - float *input, + float *a, int dim) { fftwf_iodim howmany_dims[2]; @@ -251,9 +251,14 @@ int field_descriptor::interleave( const int howmany_rank = sizeof(howmany_dims)/sizeof(howmany_dims[0]); fftwf_plan tmp = fftwf_plan_guru_r2r( - /*rank*/0, /*dims*/NULL, - howmany_rank, howmany_dims, - input, input, /*kind*/NULL, FFTW_ESTIMATE); + /*rank*/0, + /*dims*/NULL, + howmany_rank, + howmany_dims, + a, + a, + /*kind*/NULL, + FFTW_ESTIMATE); fftwf_execute(tmp); fftwf_destroy_plan(tmp); return EXIT_SUCCESS; -- GitLab