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 "petscao.h"
 28: #ifdef MPI_BUILD_PROFILING
 29: #ifdef PETSC_HAVE_FORTRAN_CAPS
 30: #define aodestroy_ PAODESTROY
 31: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 32: #define aodestroy_ paodestroy
 33: #else
 34: #define aodestroy_ paodestroy_
 35: #endif
 36: #else
 37: #ifdef PETSC_HAVE_FORTRAN_CAPS
 38: #define aodestroy_ AODESTROY
 39: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 40: #define aodestroy_ aodestroy
 41: #endif
 42: #endif

 44: #ifdef MPI_BUILD_PROFILING
 45: #ifdef PETSC_HAVE_FORTRAN_CAPS
 46: #define aopetsctoapplicationis_ PAOPETSCTOAPPLICATIONIS
 47: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 48: #define aopetsctoapplicationis_ paopetsctoapplicationis
 49: #else
 50: #define aopetsctoapplicationis_ paopetsctoapplicationis_
 51: #endif
 52: #else
 53: #ifdef PETSC_HAVE_FORTRAN_CAPS
 54: #define aopetsctoapplicationis_ AOPETSCTOAPPLICATIONIS
 55: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 56: #define aopetsctoapplicationis_ aopetsctoapplicationis
 57: #endif
 58: #endif

 60: #ifdef MPI_BUILD_PROFILING
 61: #ifdef PETSC_HAVE_FORTRAN_CAPS
 62: #define aoapplicationtopetscis_ PAOAPPLICATIONTOPETSCIS
 63: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 64: #define aoapplicationtopetscis_ paoapplicationtopetscis
 65: #else
 66: #define aoapplicationtopetscis_ paoapplicationtopetscis_
 67: #endif
 68: #else
 69: #ifdef PETSC_HAVE_FORTRAN_CAPS
 70: #define aoapplicationtopetscis_ AOAPPLICATIONTOPETSCIS
 71: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 72: #define aoapplicationtopetscis_ aoapplicationtopetscis
 73: #endif
 74: #endif

 76: #ifdef MPI_BUILD_PROFILING
 77: #ifdef PETSC_HAVE_FORTRAN_CAPS
 78: #define aopetsctoapplication_ PAOPETSCTOAPPLICATION
 79: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 80: #define aopetsctoapplication_ paopetsctoapplication
 81: #else
 82: #define aopetsctoapplication_ paopetsctoapplication_
 83: #endif
 84: #else
 85: #ifdef PETSC_HAVE_FORTRAN_CAPS
 86: #define aopetsctoapplication_ AOPETSCTOAPPLICATION
 87: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 88: #define aopetsctoapplication_ aopetsctoapplication
 89: #endif
 90: #endif

 92: #ifdef MPI_BUILD_PROFILING
 93: #ifdef PETSC_HAVE_FORTRAN_CAPS
 94: #define aoapplicationtopetsc_ PAOAPPLICATIONTOPETSC
 95: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 96: #define aoapplicationtopetsc_ paoapplicationtopetsc
 97: #else
 98: #define aoapplicationtopetsc_ paoapplicationtopetsc_
 99: #endif
100: #else
101: #ifdef PETSC_HAVE_FORTRAN_CAPS
102: #define aoapplicationtopetsc_ AOAPPLICATIONTOPETSC
103: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
104: #define aoapplicationtopetsc_ aoapplicationtopetsc
105: #endif
106: #endif



110: /* Definitions of Fortran Wrapper routines */
111: #if defined(__cplusplus)
112: extern "C" {
113: #endif
114: void PETSC_STDCALL aodestroy_(AO ao, int *__ierr ){
115: *__AODestroy(
116:         (AO)PetscToPointer( (ao) ));
117: }
118: void PETSC_STDCALL aopetsctoapplicationis_(AO ao,IS is, int *__ierr ){
119: *__AOPetscToApplicationIS(
120:         (AO)PetscToPointer( (ao) ),
121:         (IS)PetscToPointer( (is) ));
122: }
123: void PETSC_STDCALL aoapplicationtopetscis_(AO ao,IS is, int *__ierr ){
124: *__AOApplicationToPetscIS(
125:         (AO)PetscToPointer( (ao) ),
126:         (IS)PetscToPointer( (is) ));
127: }
128: void PETSC_STDCALL aopetsctoapplication_(AO ao,int *n,int *ia, int *__ierr ){
129: *__AOPetscToApplication(
130:         (AO)PetscToPointer( (ao) ),*n,ia);
131: }
132: void PETSC_STDCALL aoapplicationtopetsc_(AO ao,int *n,int *ia, int *__ierr ){
133: *__AOApplicationToPetsc(
134:         (AO)PetscToPointer( (ao) ),*n,ia);
135: }
136: #if defined(__cplusplus)
137: }
138: #endif