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 petscis.h
 28: #ifdef MPI_BUILD_PROFILING
 29: #ifdef PETSC_HAVE_FORTRAN_CAPS
 30: #define issetidentity_ PISSETIDENTITY
 31: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 32: #define issetidentity_ pissetidentity
 33: #else
 34: #define issetidentity_ pissetidentity_
 35: #endif
 36: #else
 37: #ifdef PETSC_HAVE_FORTRAN_CAPS
 38: #define issetidentity_ ISSETIDENTITY
 39: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 40: #define issetidentity_ issetidentity
 41: #endif
 42: #endif

 44: #ifdef MPI_BUILD_PROFILING
 45: #ifdef PETSC_HAVE_FORTRAN_CAPS
 46: #define issetpermutation_ PISSETPERMUTATION
 47: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 48: #define issetpermutation_ pissetpermutation
 49: #else
 50: #define issetpermutation_ pissetpermutation_
 51: #endif
 52: #else
 53: #ifdef PETSC_HAVE_FORTRAN_CAPS
 54: #define issetpermutation_ ISSETPERMUTATION
 55: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 56: #define issetpermutation_ issetpermutation
 57: #endif
 58: #endif

 60: #ifdef MPI_BUILD_PROFILING
 61: #ifdef PETSC_HAVE_FORTRAN_CAPS
 62: #define isgetsize_ PISGETSIZE
 63: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 64: #define isgetsize_ pisgetsize
 65: #else
 66: #define isgetsize_ pisgetsize_
 67: #endif
 68: #else
 69: #ifdef PETSC_HAVE_FORTRAN_CAPS
 70: #define isgetsize_ ISGETSIZE
 71: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 72: #define isgetsize_ isgetsize
 73: #endif
 74: #endif

 76: #ifdef MPI_BUILD_PROFILING
 77: #ifdef PETSC_HAVE_FORTRAN_CAPS
 78: #define isgetlocalsize_ PISGETLOCALSIZE
 79: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 80: #define isgetlocalsize_ pisgetlocalsize
 81: #else
 82: #define isgetlocalsize_ pisgetlocalsize_
 83: #endif
 84: #else
 85: #ifdef PETSC_HAVE_FORTRAN_CAPS
 86: #define isgetlocalsize_ ISGETLOCALSIZE
 87: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 88: #define isgetlocalsize_ isgetlocalsize
 89: #endif
 90: #endif

 92: #ifdef MPI_BUILD_PROFILING
 93: #ifdef PETSC_HAVE_FORTRAN_CAPS
 94: #define issort_ PISSORT
 95: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 96: #define issort_ pissort
 97: #else
 98: #define issort_ pissort_
 99: #endif
100: #else
101: #ifdef PETSC_HAVE_FORTRAN_CAPS
102: #define issort_ ISSORT
103: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
104: #define issort_ issort
105: #endif
106: #endif



110: /* Definitions of Fortran Wrapper routines */
111: #if defined(__cplusplus)
112: extern "C" {
113: #endif
114: void PETSC_STDCALL issetidentity_(IS is, int *__ierr ){
115: *__ISSetIdentity(
116:         (IS)PetscToPointer( (is) ));
117: }
118: void PETSC_STDCALL issetpermutation_(IS is, int *__ierr ){
119: *__ISSetPermutation(
120:         (IS)PetscToPointer( (is) ));
121: }
122: void PETSC_STDCALL isgetsize_(IS is,int *size, int *__ierr ){
123: *__ISGetSize(
124:         (IS)PetscToPointer( (is) ),size);
125: }
126: void PETSC_STDCALL isgetlocalsize_(IS is,int *size, int *__ierr ){
127: *__ISGetLocalSize(
128:         (IS)PetscToPointer( (is) ),size);
129: }
130: void PETSC_STDCALL issort_(IS is, int *__ierr ){
131: *__ISSort(
132:         (IS)PetscToPointer( (is) ));
133: }
134: #if defined(__cplusplus)
135: }
136: #endif