Actual source code: aof.c
1: /* ao.c */
2: /* Fortran interface file */
4: /*
5: * This file was generated automatically by bfort from the C source
6: * file.
7: */
9: #ifdef PETSC_USE_POINTER_CONVERSION
10: #if defined(__cplusplus)
11: extern "C" {
12: #endif
13: extern void *PetscToPointer(void *);
14: extern int PetscFromPointer(void *);
15: extern void PetscRmPointer(void *);
16: #if defined(__cplusplus)
17: }
18: #endif
20: #else
22: #define PetscToPointer(a) (*(long *)(a))
23: #define PetscFromPointer(a) (long)(a)
24: #define PetscRmPointer(a)
25: #endif
27: #include "petscfix.h"
28: #include petscao.h
29: #ifdef MPI_BUILD_PROFILING
30: #ifdef PETSC_HAVE_FORTRAN_CAPS
31: #define aodestroy_ PAODESTROY
32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
33: #define aodestroy_ paodestroy
34: #else
35: #define aodestroy_ paodestroy_
36: #endif
37: #else
38: #ifdef PETSC_HAVE_FORTRAN_CAPS
39: #define aodestroy_ AODESTROY
40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
41: #define aodestroy_ aodestroy
42: #endif
43: #endif
45: #ifdef MPI_BUILD_PROFILING
46: #ifdef PETSC_HAVE_FORTRAN_CAPS
47: #define aopetsctoapplicationis_ PAOPETSCTOAPPLICATIONIS
48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
49: #define aopetsctoapplicationis_ paopetsctoapplicationis
50: #else
51: #define aopetsctoapplicationis_ paopetsctoapplicationis_
52: #endif
53: #else
54: #ifdef PETSC_HAVE_FORTRAN_CAPS
55: #define aopetsctoapplicationis_ AOPETSCTOAPPLICATIONIS
56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
57: #define aopetsctoapplicationis_ aopetsctoapplicationis
58: #endif
59: #endif
61: #ifdef MPI_BUILD_PROFILING
62: #ifdef PETSC_HAVE_FORTRAN_CAPS
63: #define aoapplicationtopetscis_ PAOAPPLICATIONTOPETSCIS
64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
65: #define aoapplicationtopetscis_ paoapplicationtopetscis
66: #else
67: #define aoapplicationtopetscis_ paoapplicationtopetscis_
68: #endif
69: #else
70: #ifdef PETSC_HAVE_FORTRAN_CAPS
71: #define aoapplicationtopetscis_ AOAPPLICATIONTOPETSCIS
72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
73: #define aoapplicationtopetscis_ aoapplicationtopetscis
74: #endif
75: #endif
77: #ifdef MPI_BUILD_PROFILING
78: #ifdef PETSC_HAVE_FORTRAN_CAPS
79: #define aopetsctoapplication_ PAOPETSCTOAPPLICATION
80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
81: #define aopetsctoapplication_ paopetsctoapplication
82: #else
83: #define aopetsctoapplication_ paopetsctoapplication_
84: #endif
85: #else
86: #ifdef PETSC_HAVE_FORTRAN_CAPS
87: #define aopetsctoapplication_ AOPETSCTOAPPLICATION
88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
89: #define aopetsctoapplication_ aopetsctoapplication
90: #endif
91: #endif
93: #ifdef MPI_BUILD_PROFILING
94: #ifdef PETSC_HAVE_FORTRAN_CAPS
95: #define aoapplicationtopetsc_ PAOAPPLICATIONTOPETSC
96: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
97: #define aoapplicationtopetsc_ paoapplicationtopetsc
98: #else
99: #define aoapplicationtopetsc_ paoapplicationtopetsc_
100: #endif
101: #else
102: #ifdef PETSC_HAVE_FORTRAN_CAPS
103: #define aoapplicationtopetsc_ AOAPPLICATIONTOPETSC
104: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
105: #define aoapplicationtopetsc_ aoapplicationtopetsc
106: #endif
107: #endif
109: #ifdef MPI_BUILD_PROFILING
110: #ifdef PETSC_HAVE_FORTRAN_CAPS
111: #define aopetsctoapplicationpermuteint_ PAOPETSCTOAPPLICATIONPERMUTEINT
112: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
113: #define aopetsctoapplicationpermuteint_ paopetsctoapplicationpermuteint
114: #else
115: #define aopetsctoapplicationpermuteint_ paopetsctoapplicationpermuteint_
116: #endif
117: #else
118: #ifdef PETSC_HAVE_FORTRAN_CAPS
119: #define aopetsctoapplicationpermuteint_ AOPETSCTOAPPLICATIONPERMUTEINT
120: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
121: #define aopetsctoapplicationpermuteint_ aopetsctoapplicationpermuteint
122: #endif
123: #endif
125: #ifdef MPI_BUILD_PROFILING
126: #ifdef PETSC_HAVE_FORTRAN_CAPS
127: #define aoapplicationtopetscpermuteint_ PAOAPPLICATIONTOPETSCPERMUTEINT
128: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
129: #define aoapplicationtopetscpermuteint_ paoapplicationtopetscpermuteint
130: #else
131: #define aoapplicationtopetscpermuteint_ paoapplicationtopetscpermuteint_
132: #endif
133: #else
134: #ifdef PETSC_HAVE_FORTRAN_CAPS
135: #define aoapplicationtopetscpermuteint_ AOAPPLICATIONTOPETSCPERMUTEINT
136: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
137: #define aoapplicationtopetscpermuteint_ aoapplicationtopetscpermuteint
138: #endif
139: #endif
141: #ifdef MPI_BUILD_PROFILING
142: #ifdef PETSC_HAVE_FORTRAN_CAPS
143: #define aopetsctoapplicationpermutereal_ PAOPETSCTOAPPLICATIONPERMUTEREAL
144: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
145: #define aopetsctoapplicationpermutereal_ paopetsctoapplicationpermutereal
146: #else
147: #define aopetsctoapplicationpermutereal_ paopetsctoapplicationpermutereal_
148: #endif
149: #else
150: #ifdef PETSC_HAVE_FORTRAN_CAPS
151: #define aopetsctoapplicationpermutereal_ AOPETSCTOAPPLICATIONPERMUTEREAL
152: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
153: #define aopetsctoapplicationpermutereal_ aopetsctoapplicationpermutereal
154: #endif
155: #endif
157: #ifdef MPI_BUILD_PROFILING
158: #ifdef PETSC_HAVE_FORTRAN_CAPS
159: #define aoapplicationtopetscpermutereal_ PAOAPPLICATIONTOPETSCPERMUTEREAL
160: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
161: #define aoapplicationtopetscpermutereal_ paoapplicationtopetscpermutereal
162: #else
163: #define aoapplicationtopetscpermutereal_ paoapplicationtopetscpermutereal_
164: #endif
165: #else
166: #ifdef PETSC_HAVE_FORTRAN_CAPS
167: #define aoapplicationtopetscpermutereal_ AOAPPLICATIONTOPETSCPERMUTEREAL
168: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
169: #define aoapplicationtopetscpermutereal_ aoapplicationtopetscpermutereal
170: #endif
171: #endif
175: /* Definitions of Fortran Wrapper routines */
176: #if defined(__cplusplus)
177: extern "C" {
178: #endif
179: void PETSC_STDCALL aodestroy_(AO ao, int *ierr ){
180: *AODestroy(
181: (AO)PetscToPointer( (ao) ));
182: }
183: void PETSC_STDCALL aopetsctoapplicationis_(AO ao,IS is, int *ierr ){
184: *AOPetscToApplicationIS(
185: (AO)PetscToPointer( (ao) ),
186: (IS)PetscToPointer( (is) ));
187: }
188: void PETSC_STDCALL aoapplicationtopetscis_(AO ao,IS is, int *ierr ){
189: *AOApplicationToPetscIS(
190: (AO)PetscToPointer( (ao) ),
191: (IS)PetscToPointer( (is) ));
192: }
193: void PETSC_STDCALL aopetsctoapplication_(AO ao,int *n,int *ia, int *ierr ){
194: *AOPetscToApplication(
195: (AO)PetscToPointer( (ao) ),*n,ia);
196: }
197: void PETSC_STDCALL aoapplicationtopetsc_(AO ao,int *n,int *ia, int *ierr ){
198: *AOApplicationToPetsc(
199: (AO)PetscToPointer( (ao) ),*n,ia);
200: }
201: void PETSC_STDCALL aopetsctoapplicationpermuteint_(AO ao,int *block,int *array, int *ierr ){
202: *AOPetscToApplicationPermuteInt(
203: (AO)PetscToPointer( (ao) ),*block,array);
204: }
205: void PETSC_STDCALL aoapplicationtopetscpermuteint_(AO ao,int *block,int *array, int *ierr ){
206: *AOApplicationToPetscPermuteInt(
207: (AO)PetscToPointer( (ao) ),*block,array);
208: }
209: void PETSC_STDCALL aopetsctoapplicationpermutereal_(AO ao,int *block,double *array, int *ierr ){
210: *AOPetscToApplicationPermuteReal(
211: (AO)PetscToPointer( (ao) ),*block,array);
212: }
213: void PETSC_STDCALL aoapplicationtopetscpermutereal_(AO ao,int *block,double *array, int *ierr ){
214: *AOApplicationToPetscPermuteReal(
215: (AO)PetscToPointer( (ao) ),*block,array);
216: }
217: #if defined(__cplusplus)
218: }
219: #endif