cannam@95: cannam@95:
cannam@95:cannam@95: Next: Calling FFTW from Legacy Fortran, cannam@95: Previous: Distributed-memory FFTW with MPI, cannam@95: Up: Top cannam@95:
cannam@95: Fortran 2003 standardized ways for Fortran code to call C libraries, cannam@95: and this allows us to support a direct translation of the FFTW C API cannam@95: into Fortran. Compared to the legacy Fortran 77 interface cannam@95: (see Calling FFTW from Legacy Fortran), this direct interface cannam@95: offers many advantages, especially compile-time type-checking and cannam@95: aligned memory allocation. As of this writing, support for these C cannam@95: interoperability features seems widespread, having been implemented in cannam@95: nearly all major Fortran compilers (e.g. GNU, Intel, IBM, cannam@95: Oracle/Solaris, Portland Group, NAG). cannam@95: cannam@95: This chapter documents that interface. For the most part, since this cannam@95: interface allows Fortran to call the C interface directly, the usage cannam@95: is identical to C translated to Fortran syntax. However, there are a cannam@95: few subtle points such as memory allocation, wisdom, and data types cannam@95: that deserve closer attention. cannam@95: cannam@95:
cannam@95: cannam@95: cannam@95: cannam@95: