Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: FFTW 3.3.8: Calling FFTW from Legacy Fortran Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82:
Chris@82:

Chris@82: Next: , Previous: , Up: Top   [Contents][Index]

Chris@82:
Chris@82:
Chris@82: Chris@82:

8 Calling FFTW from Legacy Fortran

Chris@82: Chris@82: Chris@82:

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

Chris@82:

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

Chris@82:

The MPI parallel interface to FFTW is not currently available Chris@82: to legacy Fortran. Chris@82:

Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: Chris@82:
Chris@82:
Chris@82:

Chris@82: Next: , Previous: , Up: Top   [Contents][Index]

Chris@82:
Chris@82: Chris@82: Chris@82: Chris@82: Chris@82: