Actual source code: sortdf.c
1: /* sortd.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 petscsortreal_ PPETSCSORTREAL
34: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
35: #define petscsortreal_ ppetscsortreal
36: #else
37: #define petscsortreal_ ppetscsortreal_
38: #endif
39: #else
40: #ifdef PETSC_HAVE_FORTRAN_CAPS
41: #define petscsortreal_ PETSCSORTREAL
42: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
43: #define petscsortreal_ petscsortreal
44: #endif
45: #endif
49: /* Definitions of Fortran Wrapper routines */
50: #if defined(__cplusplus)
51: extern "C" {
52: #endif
53: void PETSC_STDCALL petscsortreal_(int *n,PetscReal v[], int *ierr ){
54: *PetscSortReal(*n,v);
55: }
56: #if defined(__cplusplus)
57: }
58: #endif