Chris@10: Chris@10: Chris@10: Calling FFTW from Legacy Fortran - FFTW 3.3.3 Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10: Chris@10:
Chris@10: Chris@10:

Chris@10: Next: , Chris@10: Previous: Calling FFTW from Modern Fortran, Chris@10: Up: Top Chris@10:


Chris@10:
Chris@10: Chris@10:

8 Calling FFTW from Legacy Fortran

Chris@10: Chris@10:

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

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

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

Chris@10: Chris@10: Chris@10: Chris@10: