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