cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: FFTW 3.3.5: Calling FFTW from Legacy Fortran cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127:
cannam@127:

cannam@127: Next: , Previous: , Up: Top   [Contents][Index]

cannam@127:
cannam@127:
cannam@127: cannam@127:

8 Calling FFTW from Legacy Fortran

cannam@127: cannam@127: cannam@127:

This chapter describes the interface to FFTW callable by Fortran code cannam@127: in older compilers not supporting the Fortran 2003 C interoperability cannam@127: features (see Calling FFTW from Modern Fortran). This interface cannam@127: has the major disadvantage that it is not type-checked, so if you cannam@127: mistake the argument types or ordering then your program will not have cannam@127: any compiler errors, and will likely crash at runtime. So, greater cannam@127: care is needed. Also, technically interfacing older Fortran versions cannam@127: to C is nonstandard, but in practice we have found that the techniques cannam@127: used in this chapter have worked with all known Fortran compilers for cannam@127: many years. cannam@127:

cannam@127:

The legacy Fortran interface differs from the C interface only in the cannam@127: prefix (‘dfftw_’ instead of ‘fftw_’ in double precision) and cannam@127: a few other minor details. This Fortran interface is included in the cannam@127: FFTW libraries by default, unless a Fortran compiler isn’t found on cannam@127: your system or --disable-fortran is included in the cannam@127: configure flags. We assume here that the reader is already cannam@127: familiar with the usage of FFTW in C, as described elsewhere in this cannam@127: manual. cannam@127:

cannam@127:

The MPI parallel interface to FFTW is not currently available cannam@127: to legacy Fortran. cannam@127:

cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: cannam@127:
cannam@127:
cannam@127:

cannam@127: Next: , Previous: , Up: Top   [Contents][Index]

cannam@127:
cannam@127: cannam@127: cannam@127: cannam@127: cannam@127: