Actual source code: sortipf.c

  1: /* sortip.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 petscsortintwithpermutation_ PPETSCSORTINTWITHPERMUTATION
 34: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 35: #define petscsortintwithpermutation_ ppetscsortintwithpermutation
 36: #else
 37: #define petscsortintwithpermutation_ ppetscsortintwithpermutation_
 38: #endif
 39: #else
 40: #ifdef PETSC_HAVE_FORTRAN_CAPS
 41: #define petscsortintwithpermutation_ PETSCSORTINTWITHPERMUTATION
 42: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 43: #define petscsortintwithpermutation_ petscsortintwithpermutation
 44: #endif
 45: #endif

 47: #ifdef MPI_BUILD_PROFILING
 48: #ifdef PETSC_HAVE_FORTRAN_CAPS
 49: #define petscsortrealwithpermutation_ PPETSCSORTREALWITHPERMUTATION
 50: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 51: #define petscsortrealwithpermutation_ ppetscsortrealwithpermutation
 52: #else
 53: #define petscsortrealwithpermutation_ ppetscsortrealwithpermutation_
 54: #endif
 55: #else
 56: #ifdef PETSC_HAVE_FORTRAN_CAPS
 57: #define petscsortrealwithpermutation_ PETSCSORTREALWITHPERMUTATION
 58: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 59: #define petscsortrealwithpermutation_ petscsortrealwithpermutation
 60: #endif
 61: #endif



 65: /* Definitions of Fortran Wrapper routines */
 66: #if defined(__cplusplus)
 67: extern "C" {
 68: #endif
 69: void PETSC_STDCALL petscsortintwithpermutation_(int *n, int i[],int idx[], int *ierr ){
 70: *PetscSortIntWithPermutation(*n,i,idx);
 71: }
 72: void PETSC_STDCALL petscsortrealwithpermutation_(int *n, PetscReal i[],int idx[], int *ierr ){
 73: *PetscSortRealWithPermutation(*n,i,idx);
 74: }
 75: #if defined(__cplusplus)
 76: }
 77: #endif