Actual source code: indexf.c
1: /* index.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 petscis.h
29: #ifdef MPI_BUILD_PROFILING
30: #ifdef PETSC_HAVE_FORTRAN_CAPS
31: #define issetidentity_ PISSETIDENTITY
32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
33: #define issetidentity_ pissetidentity
34: #else
35: #define issetidentity_ pissetidentity_
36: #endif
37: #else
38: #ifdef PETSC_HAVE_FORTRAN_CAPS
39: #define issetidentity_ ISSETIDENTITY
40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
41: #define issetidentity_ issetidentity
42: #endif
43: #endif
45: #ifdef MPI_BUILD_PROFILING
46: #ifdef PETSC_HAVE_FORTRAN_CAPS
47: #define issetpermutation_ PISSETPERMUTATION
48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
49: #define issetpermutation_ pissetpermutation
50: #else
51: #define issetpermutation_ pissetpermutation_
52: #endif
53: #else
54: #ifdef PETSC_HAVE_FORTRAN_CAPS
55: #define issetpermutation_ ISSETPERMUTATION
56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
57: #define issetpermutation_ issetpermutation
58: #endif
59: #endif
61: #ifdef MPI_BUILD_PROFILING
62: #ifdef PETSC_HAVE_FORTRAN_CAPS
63: #define isgetsize_ PISGETSIZE
64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
65: #define isgetsize_ pisgetsize
66: #else
67: #define isgetsize_ pisgetsize_
68: #endif
69: #else
70: #ifdef PETSC_HAVE_FORTRAN_CAPS
71: #define isgetsize_ ISGETSIZE
72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
73: #define isgetsize_ isgetsize
74: #endif
75: #endif
77: #ifdef MPI_BUILD_PROFILING
78: #ifdef PETSC_HAVE_FORTRAN_CAPS
79: #define isgetlocalsize_ PISGETLOCALSIZE
80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
81: #define isgetlocalsize_ pisgetlocalsize
82: #else
83: #define isgetlocalsize_ pisgetlocalsize_
84: #endif
85: #else
86: #ifdef PETSC_HAVE_FORTRAN_CAPS
87: #define isgetlocalsize_ ISGETLOCALSIZE
88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
89: #define isgetlocalsize_ isgetlocalsize
90: #endif
91: #endif
93: #ifdef MPI_BUILD_PROFILING
94: #ifdef PETSC_HAVE_FORTRAN_CAPS
95: #define issort_ PISSORT
96: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
97: #define issort_ pissort
98: #else
99: #define issort_ pissort_
100: #endif
101: #else
102: #ifdef PETSC_HAVE_FORTRAN_CAPS
103: #define issort_ ISSORT
104: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
105: #define issort_ issort
106: #endif
107: #endif
111: /* Definitions of Fortran Wrapper routines */
112: #if defined(__cplusplus)
113: extern "C" {
114: #endif
115: void PETSC_STDCALL issetidentity_(IS is, int *ierr ){
116: *ISSetIdentity(
117: (IS)PetscToPointer( (is) ));
118: }
119: void PETSC_STDCALL issetpermutation_(IS is, int *ierr ){
120: *ISSetPermutation(
121: (IS)PetscToPointer( (is) ));
122: }
123: void PETSC_STDCALL isgetsize_(IS is,int *size, int *ierr ){
124: *ISGetSize(
125: (IS)PetscToPointer( (is) ),size);
126: }
127: void PETSC_STDCALL isgetlocalsize_(IS is,int *size, int *ierr ){
128: *ISGetLocalSize(
129: (IS)PetscToPointer( (is) ),size);
130: }
131: void PETSC_STDCALL issort_(IS is, int *ierr ){
132: *ISSort(
133: (IS)PetscToPointer( (is) ));
134: }
135: #if defined(__cplusplus)
136: }
137: #endif