Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: FFTW 3.3.5: Calling FFTW from Legacy Fortran Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42:
Chris@42:

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

Chris@42:
Chris@42:
Chris@42: Chris@42:

8 Calling FFTW from Legacy Fortran

Chris@42: Chris@42: Chris@42:

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

Chris@42:

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

Chris@42:

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

Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: Chris@42:
Chris@42:
Chris@42:

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

Chris@42:
Chris@42: Chris@42: Chris@42: Chris@42: Chris@42: