annotate src/fftw-3.3.3/doc/html/Calling-FFTW-from-Legacy-Fortran.html @ 95:89f5e221ed7b

Add FFTW3
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 20 Mar 2013 15:35:50 +0000
parents
children
rev   line source
cannam@95 1 <html lang="en">
cannam@95 2 <head>
cannam@95 3 <title>Calling FFTW from Legacy Fortran - FFTW 3.3.3</title>
cannam@95 4 <meta http-equiv="Content-Type" content="text/html">
cannam@95 5 <meta name="description" content="FFTW 3.3.3">
cannam@95 6 <meta name="generator" content="makeinfo 4.13">
cannam@95 7 <link title="Top" rel="start" href="index.html#Top">
cannam@95 8 <link rel="prev" href="Calling-FFTW-from-Modern-Fortran.html#Calling-FFTW-from-Modern-Fortran" title="Calling FFTW from Modern Fortran">
cannam@95 9 <link rel="next" href="Upgrading-from-FFTW-version-2.html#Upgrading-from-FFTW-version-2" title="Upgrading from FFTW version 2">
cannam@95 10 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
cannam@95 11 <!--
cannam@95 12 This manual is for FFTW
cannam@95 13 (version 3.3.3, 25 November 2012).
cannam@95 14
cannam@95 15 Copyright (C) 2003 Matteo Frigo.
cannam@95 16
cannam@95 17 Copyright (C) 2003 Massachusetts Institute of Technology.
cannam@95 18
cannam@95 19 Permission is granted to make and distribute verbatim copies of
cannam@95 20 this manual provided the copyright notice and this permission
cannam@95 21 notice are preserved on all copies.
cannam@95 22
cannam@95 23 Permission is granted to copy and distribute modified versions of
cannam@95 24 this manual under the conditions for verbatim copying, provided
cannam@95 25 that the entire resulting derived work is distributed under the
cannam@95 26 terms of a permission notice identical to this one.
cannam@95 27
cannam@95 28 Permission is granted to copy and distribute translations of this
cannam@95 29 manual into another language, under the above conditions for
cannam@95 30 modified versions, except that this permission notice may be
cannam@95 31 stated in a translation approved by the Free Software Foundation.
cannam@95 32 -->
cannam@95 33 <meta http-equiv="Content-Style-Type" content="text/css">
cannam@95 34 <style type="text/css"><!--
cannam@95 35 pre.display { font-family:inherit }
cannam@95 36 pre.format { font-family:inherit }
cannam@95 37 pre.smalldisplay { font-family:inherit; font-size:smaller }
cannam@95 38 pre.smallformat { font-family:inherit; font-size:smaller }
cannam@95 39 pre.smallexample { font-size:smaller }
cannam@95 40 pre.smalllisp { font-size:smaller }
cannam@95 41 span.sc { font-variant:small-caps }
cannam@95 42 span.roman { font-family:serif; font-weight:normal; }
cannam@95 43 span.sansserif { font-family:sans-serif; font-weight:normal; }
cannam@95 44 --></style>
cannam@95 45 </head>
cannam@95 46 <body>
cannam@95 47 <div class="node">
cannam@95 48 <a name="Calling-FFTW-from-Legacy-Fortran"></a>
cannam@95 49 <p>
cannam@95 50 Next:&nbsp;<a rel="next" accesskey="n" href="Upgrading-from-FFTW-version-2.html#Upgrading-from-FFTW-version-2">Upgrading from FFTW version 2</a>,
cannam@95 51 Previous:&nbsp;<a rel="previous" accesskey="p" href="Calling-FFTW-from-Modern-Fortran.html#Calling-FFTW-from-Modern-Fortran">Calling FFTW from Modern Fortran</a>,
cannam@95 52 Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
cannam@95 53 <hr>
cannam@95 54 </div>
cannam@95 55
cannam@95 56 <h2 class="chapter">8 Calling FFTW from Legacy Fortran</h2>
cannam@95 57
cannam@95 58 <p><a name="index-Fortran-interface-577"></a>
cannam@95 59 This chapter describes the interface to FFTW callable by Fortran code
cannam@95 60 in older compilers not supporting the Fortran 2003 C interoperability
cannam@95 61 features (see <a href="Calling-FFTW-from-Modern-Fortran.html#Calling-FFTW-from-Modern-Fortran">Calling FFTW from Modern Fortran</a>). This interface
cannam@95 62 has the major disadvantage that it is not type-checked, so if you
cannam@95 63 mistake the argument types or ordering then your program will not have
cannam@95 64 any compiler errors, and will likely crash at runtime. So, greater
cannam@95 65 care is needed. Also, technically interfacing older Fortran versions
cannam@95 66 to C is nonstandard, but in practice we have found that the techniques
cannam@95 67 used in this chapter have worked with all known Fortran compilers for
cannam@95 68 many years.
cannam@95 69
cannam@95 70 <p>The legacy Fortran interface differs from the C interface only in the
cannam@95 71 prefix (&lsquo;<samp><span class="samp">dfftw_</span></samp>&rsquo; instead of &lsquo;<samp><span class="samp">fftw_</span></samp>&rsquo; in double precision) and
cannam@95 72 a few other minor details. This Fortran interface is included in the
cannam@95 73 FFTW libraries by default, unless a Fortran compiler isn't found on
cannam@95 74 your system or <code>--disable-fortran</code> is included in the
cannam@95 75 <code>configure</code> flags. We assume here that the reader is already
cannam@95 76 familiar with the usage of FFTW in C, as described elsewhere in this
cannam@95 77 manual.
cannam@95 78
cannam@95 79 <p>The MPI parallel interface to FFTW is <em>not</em> currently available
cannam@95 80 to legacy Fortran.
cannam@95 81
cannam@95 82 <ul class="menu">
cannam@95 83 <li><a accesskey="1" href="Fortran_002dinterface-routines.html#Fortran_002dinterface-routines">Fortran-interface routines</a>
cannam@95 84 <li><a accesskey="2" href="FFTW-Constants-in-Fortran.html#FFTW-Constants-in-Fortran">FFTW Constants in Fortran</a>
cannam@95 85 <li><a accesskey="3" href="FFTW-Execution-in-Fortran.html#FFTW-Execution-in-Fortran">FFTW Execution in Fortran</a>
cannam@95 86 <li><a accesskey="4" href="Fortran-Examples.html#Fortran-Examples">Fortran Examples</a>
cannam@95 87 <li><a accesskey="5" href="Wisdom-of-Fortran_003f.html#Wisdom-of-Fortran_003f">Wisdom of Fortran?</a>
cannam@95 88 </ul>
cannam@95 89
cannam@95 90 <!-- -->
cannam@95 91 </body></html>
cannam@95 92