Debian Codegraph @

C++/Include/proto_f77.h

raw symbols SCIP
1 /*
2 * Prototypes of Fortran 77 external functions
3 *
4 * (system dependent)
5 *
6 */
7
8 /*
9 * Copyright (c) 2002 Eric Gourgoulhon
10 *
11 * This file is part of LORENE.
12 *
13 * LORENE is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2
15 * as published by the Free Software Foundation.
16 *
17 * LORENE is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with LORENE; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 */
27
28 #ifndef __PROTO_F77_H_
29 #define __PROTO_F77_H_
30
31 /*
32 * $Id: proto_f77.h,v 1.5 2012/09/04 14:53:28 j_novak Exp $
33 * $Log: proto_f77.h,v $
34 * Revision 1.5 2012/09/04 14:53:28 j_novak
35 * Replacement of the FORTRAN version of huntm by a C one.
36 *
37 * Revision 1.4 2008/08/19 06:41:59 j_novak
38 * Minor modifications to avoid warnings with gcc 4.3. Most of them concern
39 * cast-type operations, and constant strings that must be defined as const char*
40 *
41 * Revision 1.3 2004/12/29 12:27:35 j_novak
42 * permute is now a Itbl* which array is sent directly to the LAPACK routines.
43 * It is now possible to solve a general system (i.e. even if the Matrice
44 * is not in a banded form).
45 *
46 * Revision 1.2 2002/09/09 13:54:20 e_gourgoulhon
47 *
48 * Change of name of the Fortran subroutines
49 * poisson2d -> poiss2d
50 * poisson2di -> poiss2di
51 * to avoid any clash with Map::poisson2d and Map::poisson2di
52 *
53 * Revision 1.1 2002/09/09 13:00:39 e_gourgoulhon
54 * Modification of declaration of Fortran 77 prototypes for
55 * a better portability (in particular on IBM AIX systems):
56 * All Fortran subroutine names are now written F77_* and are
57 * defined in the new file C++/Include/proto_f77.h.
58 *
59 *
60 *
61 * $Header: /cvsroot/Lorene/C++/Include/proto_f77.h,v 1.5 2012/09/04 14:53:28 j_novak Exp $
62 *
63 */
64
65 // FFT
66 // ---
67 #ifdef __aix
68 #define F77_fft991 fft991
69 #define F77_fax fax
70 #define F77_fftrig fftrig
71 #else
72 #define F77_fft991 fft991_
73 #define F77_fax fax_
74 #define F77_fftrig fftrig_
75 #endif
76
77 extern "C" {
78 void F77_fft991(double [], double [], double [], int [], int *, int *, int *, int *, int *) ;
79 void F77_fax(int *, int*, int *) ;
80 void F77_fftrig(double [], int *, int *) ;
81 }
82
83 // Prototypage des routines BLAS et LAPACK
84 // ---------------------------------------
85 #ifdef __aix
86 #define F77_dswap dswap
87 #define F77_dgbtrf dgbtrf
88 #define F77_dgbtrs dgbtrs
89 #define F77_dgetrf dgetrf
90 #define F77_dgetrs dgetrs
91 #define F77_dgeev dgeev
92 #define F77_dgesv dgesv
93 #else
94 #define F77_dswap dswap_
95 #define F77_dgbtrf dgbtrf_
96 #define F77_dgbtrs dgbtrs_
97 #define F77_dgetrf dgetrf_
98 #define F77_dgetrs dgetrs_
99 #define F77_dgeev dgeev_
100 #define F77_dgesv dgesv_
101 #endif
102
103 extern "C" {
104 void F77_dswap(int*, double [], int*, double [], int*) ;
105 void F77_dgbtrf(int*, int*, int*, int*, double[], int*, int[], int *) ;
106 void F77_dgbtrs(const char*, int*, int*, int*, int*,
107 double[], int*, int[], double [], int*, int *) ;
108 void F77_dgetrf(int*, int*, double[], int*, int[], int *) ;
109 void F77_dgetrs(const char*, int*, int*, double[], int*, int[], double [], int*, int* ) ;
110 void F77_dgeev(const char*, const char*, int*, double[], int*, double[], double[],
111 double[], int*, double[], int*, double[], int*, int*) ;
112 void F77_dgesv(int *, int *, double [], int *, int [], double[], int *, int *) ;
113 }
114
115
116 // Fortran routines for 2-D computations
117 // -------------------------------------
118 #ifdef __aix
119 #define F77_integrale2d integrale2d
120 #define F77_poiss2d poiss2d
121 #define F77_poiss2di poiss2di
122 #else
123 #define F77_integrale2d integrale2d_
124 #define F77_poiss2d poiss2d_
125 #define F77_poiss2di poiss2di_
126 #endif
127
128 extern "C" {
129 void F77_integrale2d(int[], int*, int*, int*, double[], double[],
130 double*) ;
131 void F77_poiss2d(int[], int*, int*, int*, int[], double[], double[],
132 double[], double*, double[]) ;
133 void F77_poiss2di(int[], int*, int*, int*, int[], double[],
134 double[], double[]) ;
135 }
136
137 // Miscellaneous
138 // -------------
139 #ifdef __aix
140 #define F77_insmts insmts
141 #else
142 #define F77_insmts insmts_
143 #endif
144
145 extern "C" {
146 void F77_insmts(int [], int *, double [], double [], double [], double []) ;
147 }
148
149 #endif