Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fft.cpp
Go to the documentation of this file.
1 
14 #include "fft.h"
15 
16 #ifdef USE_FFTWLIB
17 
18 
19 #ifdef USE_FACTORY
20 
21 #ifdef USE_FACTORY_AUTOREGISTER
22 #else
23 // setup factories for all subclasses
24 
25 #include "fft_xyz_1dim.h"
26 #include "fft_xyz_3dim.h"
27 
28 #include "fft_3d_local.h"
29 #ifdef USE_MPI
30 #include "fft_3d_parallel1d.h"
31 #include "fft_3d_parallel3d.h"
32 #endif
33 #include "fft_3d.h"
34 
35 bool FFT::init_factory()
36 {
37  bool result = true;
38 
39  result &= FFT_xyz_1dim::register_factory();
40  result &= FFT_xyz_3dim::register_factory();
41 
42  result &= FFT_3d_local::register_factory();
43 #ifdef USE_MPI
44  result &= FFT_3d_parallel1d::register_factory();
45  result &= FFT_3d_parallel3d::register_factory();
46 #endif
47  result &= FFT_3d::register_factory();
48 
49  return result;
50 }
51 
52 
53 #endif /* USE_FACTORY_AUTOREGISTER */
54 
55 #endif /* USE_FACTORY */
56 
57 
58 #endif /* USE_FFTWLIB */