Actual source code: sortif.c

  1: /* sorti.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 petsc.h
 29: #include "petscfix.h"
 30:  #include petscsys.h
 31: #ifdef MPI_BUILD_PROFILING
 32: #ifdef PETSC_HAVE_FORTRAN_CAPS
 33: #define petscsortint_ PPETSCSORTINT
 34: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 35: #define petscsortint_ ppetscsortint
 36: #else
 37: #define petscsortint_ ppetscsortint_
 38: #endif
 39: #else
 40: #ifdef PETSC_HAVE_FORTRAN_CAPS
 41: #define petscsortint_ PETSCSORTINT
 42: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 43: #define petscsortint_ petscsortint
 44: #endif
 45: #endif

 47: #ifdef MPI_BUILD_PROFILING
 48: #ifdef PETSC_HAVE_FORTRAN_CAPS
 49: #define petscsortintwitharray_ PPETSCSORTINTWITHARRAY
 50: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 51: #define petscsortintwitharray_ ppetscsortintwitharray
 52: #else
 53: #define petscsortintwitharray_ ppetscsortintwitharray_
 54: #endif
 55: #else
 56: #ifdef PETSC_HAVE_FORTRAN_CAPS
 57: #define petscsortintwitharray_ PETSCSORTINTWITHARRAY
 58: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 59: #define petscsortintwitharray_ petscsortintwitharray
 60: #endif
 61: #endif



 65: /* Definitions of Fortran Wrapper routines */
 66: #if defined(__cplusplus)
 67: extern "C" {
 68: #endif
 69: void PETSC_STDCALL petscsortint_(int *n,int i[], int *ierr ){
 70: *PetscSortInt(*n,i);
 71: }
 72: void PETSC_STDCALL petscsortintwitharray_(int *n,int i[],int I[], int *ierr ){
 73: *PetscSortIntWithArray(*n,i,I);
 74: }
 75: #if defined(__cplusplus)
 76: }
 77: #endif