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