Actual source code: isltogf.c

  1: /* isltog.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 "petscsys.h"
 28: #include "petscis.h"
 29: #ifdef MPI_BUILD_PROFILING
 30: #ifdef PETSC_HAVE_FORTRAN_CAPS
 31: #define islocaltoglobalmappingdestroy_ PISLOCALTOGLOBALMAPPINGDESTROY
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define islocaltoglobalmappingdestroy_ pislocaltoglobalmappingdestroy
 34: #else
 35: #define islocaltoglobalmappingdestroy_ pislocaltoglobalmappingdestroy_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define islocaltoglobalmappingdestroy_ ISLOCALTOGLOBALMAPPINGDESTROY
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define islocaltoglobalmappingdestroy_ islocaltoglobalmappingdestroy
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define islocaltoglobalmappingapplyis_ PISLOCALTOGLOBALMAPPINGAPPLYIS
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define islocaltoglobalmappingapplyis_ pislocaltoglobalmappingapplyis
 50: #else
 51: #define islocaltoglobalmappingapplyis_ pislocaltoglobalmappingapplyis_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define islocaltoglobalmappingapplyis_ ISLOCALTOGLOBALMAPPINGAPPLYIS
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define islocaltoglobalmappingapplyis_ islocaltoglobalmappingapplyis
 58: #endif
 59: #endif

 61: #ifdef MPI_BUILD_PROFILING
 62: #ifdef PETSC_HAVE_FORTRAN_CAPS
 63: #define isglobaltolocalmappingapply_ PISGLOBALTOLOCALMAPPINGAPPLY
 64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 65: #define isglobaltolocalmappingapply_ pisglobaltolocalmappingapply
 66: #else
 67: #define isglobaltolocalmappingapply_ pisglobaltolocalmappingapply_
 68: #endif
 69: #else
 70: #ifdef PETSC_HAVE_FORTRAN_CAPS
 71: #define isglobaltolocalmappingapply_ ISGLOBALTOLOCALMAPPINGAPPLY
 72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 73: #define isglobaltolocalmappingapply_ isglobaltolocalmappingapply
 74: #endif
 75: #endif



 79: /* Definitions of Fortran Wrapper routines */
 80: #if defined(__cplusplus)
 81: extern "C" {
 82: #endif
 83: void PETSC_STDCALL islocaltoglobalmappingdestroy_(ISLocalToGlobalMapping *mapping, int *__ierr ){
 84: *__ISLocalToGlobalMappingDestroy(*mapping);
 85: }
 86: void PETSC_STDCALL islocaltoglobalmappingapplyis_(ISLocalToGlobalMapping *mapping,IS is,IS *newis, int *__ierr ){
 87: *__ISLocalToGlobalMappingApplyIS(*mapping,
 88:         (IS)PetscToPointer( (is) ),newis);
 89: }
 90: void PETSC_STDCALL isglobaltolocalmappingapply_(ISLocalToGlobalMapping *mapping,ISGlobalToLocalMappingType *type,
 91:                                   int *n, int idx[],int *nout,int idxout[], int *__ierr ){
 92: *__ISGlobalToLocalMappingApply(*mapping,*type,*n,idx,nout,idxout);
 93: }
 94: #if defined(__cplusplus)
 95: }
 96: #endif