d@0: d@0: d@0: FFTW Constants in Fortran - FFTW 3.2.1 d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0: d@0:
d@0:

d@0: d@0: Next: , d@0: Previous: Fortran-interface routines, d@0: Up: Calling FFTW from Fortran d@0:


d@0:
d@0: d@0:

7.2 FFTW Constants in Fortran

d@0: d@0:

When creating plans in FFTW, a number of constants are used to specify d@0: options, such as FFTW_MEASURE or FFTW_ESTIMATE. The d@0: same constants must be used with the wrapper routines, but of course the d@0: C header files where the constants are defined can't be incorporated d@0: directly into Fortran code. d@0: d@0:

Instead, we have placed Fortran equivalents of the FFTW constant d@0: definitions in the file fftw3.f, which can be found in the same d@0: directory as fftw3.h. If your Fortran compiler supports a d@0: preprocessor of some sort, you should be able to include or d@0: #include this file; otherwise, you can paste it directly into d@0: your code. d@0: d@0:

In C, you combine different flags (like FFTW_PRESERVE_INPUT and d@0: FFTW_MEASURE) using the `|' operator; in Fortran you d@0: should just use `+'. (Take care not to add in the same flag d@0: more than once, though.) d@0: d@0: d@0: d@0: