cannam@167: cannam@167: cannam@167: cannam@167: cannam@167:
cannam@167:cannam@167: Next: Upgrading from FFTW version 2, Previous: Calling FFTW from Modern Fortran, Up: Top [Contents][Index]
cannam@167:This chapter describes the interface to FFTW callable by Fortran code cannam@167: in older compilers not supporting the Fortran 2003 C interoperability cannam@167: features (see Calling FFTW from Modern Fortran). This interface cannam@167: has the major disadvantage that it is not type-checked, so if you cannam@167: mistake the argument types or ordering then your program will not have cannam@167: any compiler errors, and will likely crash at runtime. So, greater cannam@167: care is needed. Also, technically interfacing older Fortran versions cannam@167: to C is nonstandard, but in practice we have found that the techniques cannam@167: used in this chapter have worked with all known Fortran compilers for cannam@167: many years. cannam@167:
cannam@167:The legacy Fortran interface differs from the C interface only in the
cannam@167: prefix (‘dfftw_’ instead of ‘fftw_’ in double precision) and
cannam@167: a few other minor details. This Fortran interface is included in the
cannam@167: FFTW libraries by default, unless a Fortran compiler isn’t found on
cannam@167: your system or --disable-fortran
is included in the
cannam@167: configure
flags. We assume here that the reader is already
cannam@167: familiar with the usage of FFTW in C, as described elsewhere in this
cannam@167: manual.
cannam@167:
The MPI parallel interface to FFTW is not currently available cannam@167: to legacy Fortran. cannam@167:
cannam@167:• Fortran-interface routines: | cannam@167: | |
• FFTW Constants in Fortran: | cannam@167: | |
• FFTW Execution in Fortran: | cannam@167: | |
• Fortran Examples: | cannam@167: | |
• Wisdom of Fortran?: | cannam@167: |
cannam@167: Next: Upgrading from FFTW version 2, Previous: Calling FFTW from Modern Fortran, Up: Top [Contents][Index]
cannam@167: