mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 22:50:45 +01:00
fftw can be switched off
This commit is contained in:
parent
73ce476890
commit
356e7940fd
@ -113,12 +113,17 @@ namespace Grid {
|
|||||||
int sign = FFTW_FORWARD;
|
int sign = FFTW_FORWARD;
|
||||||
if (inverse) sign = FFTW_BACKWARD;
|
if (inverse) sign = FFTW_BACKWARD;
|
||||||
|
|
||||||
|
#ifdef HAVE_FFTW
|
||||||
fftw_plan p = fftw_plan_many_dft(rank,n,howmany,
|
fftw_plan p = fftw_plan_many_dft(rank,n,howmany,
|
||||||
in,inembed,
|
in,inembed,
|
||||||
istride,idist,
|
istride,idist,
|
||||||
out,onembed,
|
out,onembed,
|
||||||
ostride, odist,
|
ostride, odist,
|
||||||
sign,FFTW_ESTIMATE);
|
sign,FFTW_ESTIMATE);
|
||||||
|
#else
|
||||||
|
fftw_plan p ;
|
||||||
|
assert(0);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Barrel shift and collect global pencil
|
// Barrel shift and collect global pencil
|
||||||
for(int p=0;p<processors[dim];p++) {
|
for(int p=0;p<processors[dim];p++) {
|
||||||
@ -159,7 +164,9 @@ namespace Grid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FFT the pencil
|
// FFT the pencil
|
||||||
|
#ifdef HAVE_FFTW
|
||||||
fftw_execute(p);
|
fftw_execute(p);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Extract the result
|
// Extract the result
|
||||||
for(int l=0;l<L;l++){
|
for(int l=0;l<L;l++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user