Open
Description
Hi,
First thank you for making such a nice code available openly. As I was fiddling with the code I had two questions:
-1 when I initially try to compile the code it keep complaining with the error message display at the end of this post.
I had to fix this issue by replacing in ned_fft.hpp
fftw_complex *in, *out;
with the line in
fftw_complex *input, *output;
and then it compiled fine. Was there a typo in the code or am I diong something wrong?
-2 I was wondering if you could share a simple example (for instance one of the ICS or SR example) with the distribution?
Thank you very much, -- Philippe Piot.
PS: initial error message:
[piot@gaea src]$ make
make -C ./include/
make[1]: Entering directory `/data1/aard/philippe/Codes/clara2/src/include'
g++ -Wall -O3 -c -lfftw3 -lm detector_fft.cpp
In file included from detector_fft.cpp:27:0:
ned_fft.hpp: In member function ?void ned_FFT<A, T>::fft(T*, long unsigned int)?:
ned_fft.hpp:103:5: error: ?input? was not declared in this scope
input = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
^
ned_fft.hpp:103:5: note: suggested alternative:
In file included from detector_fft.cpp:24:0:
../settings.hpp:44:1: note: ?param::input?
{
^
In file included from detector_fft.cpp:27:0:
ned_fft.hpp:104:5: error: ?output? was not declared in this scope
output = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N);
^
ned_fft.hpp: In instantiation of ?void ned_FFT<A, T>::fft(T*, long unsigned int) [with A = double; T = Vector<double, 3u>]?:
ned_fft.hpp:71:29: required from ?ned_FFT<A, T>::ned_FFT(unsigned int, A*, T*) [with A = double; T = Vector<double, 3u>]?
detector_fft.cpp:155:57: required from here
ned_fft.hpp:102:19: warning: unused variable ?in? [-Wunused-variable]
fftw_complex *in, *out;
^
ned_fft.hpp:102:24: warning: unused variable ?out? [-Wunused-variable]
fftw_complex *in, *out;
^
make[1]: *** [detector_fft.o] Error 1
make[1]: Leaving directory `/data1/aard/philippe/Codes/clara2/src/include'
make: *** [subsystem] Error 2