Actual source code: dtrif.c
1: /* dtri.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 petscdraw.h
29: #ifdef MPI_BUILD_PROFILING
30: #ifdef PETSC_HAVE_FORTRAN_CAPS
31: #define petscdrawtriangle_ PPETSCDRAWTRIANGLE
32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
33: #define petscdrawtriangle_ ppetscdrawtriangle
34: #else
35: #define petscdrawtriangle_ ppetscdrawtriangle_
36: #endif
37: #else
38: #ifdef PETSC_HAVE_FORTRAN_CAPS
39: #define petscdrawtriangle_ PETSCDRAWTRIANGLE
40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
41: #define petscdrawtriangle_ petscdrawtriangle
42: #endif
43: #endif
45: #ifdef MPI_BUILD_PROFILING
46: #ifdef PETSC_HAVE_FORTRAN_CAPS
47: #define petscdrawscalepopup_ PPETSCDRAWSCALEPOPUP
48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
49: #define petscdrawscalepopup_ ppetscdrawscalepopup
50: #else
51: #define petscdrawscalepopup_ ppetscdrawscalepopup_
52: #endif
53: #else
54: #ifdef PETSC_HAVE_FORTRAN_CAPS
55: #define petscdrawscalepopup_ PETSCDRAWSCALEPOPUP
56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
57: #define petscdrawscalepopup_ petscdrawscalepopup
58: #endif
59: #endif
61: #ifdef MPI_BUILD_PROFILING
62: #ifdef PETSC_HAVE_FORTRAN_CAPS
63: #define petscdrawtensorcontourpatch_ PPETSCDRAWTENSORCONTOURPATCH
64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
65: #define petscdrawtensorcontourpatch_ ppetscdrawtensorcontourpatch
66: #else
67: #define petscdrawtensorcontourpatch_ ppetscdrawtensorcontourpatch_
68: #endif
69: #else
70: #ifdef PETSC_HAVE_FORTRAN_CAPS
71: #define petscdrawtensorcontourpatch_ PETSCDRAWTENSORCONTOURPATCH
72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
73: #define petscdrawtensorcontourpatch_ petscdrawtensorcontourpatch
74: #endif
75: #endif
79: /* Definitions of Fortran Wrapper routines */
80: #if defined(__cplusplus)
81: extern "C" {
82: #endif
83: void PETSC_STDCALL petscdrawtriangle_(PetscDraw *draw,PetscReal *x1,PetscReal *y_1,PetscReal *x2,PetscReal *y2,PetscReal *x3,PetscReal *y3,
84: int *c1,int *c2,int *c3, int *ierr ){
85: *PetscDrawTriangle(*draw,*x1,*y_1,*x2,*y2,*x3,*y3,*c1,*c2,*c3);
86: }
87: void PETSC_STDCALL petscdrawscalepopup_(PetscDraw *popup,PetscReal *min,PetscReal *max, int *ierr ){
88: *PetscDrawScalePopup(*popup,*min,*max);
89: }
90: void PETSC_STDCALL petscdrawtensorcontourpatch_(PetscDraw *draw,int *m,int *n,PetscReal *x,PetscReal *y,PetscReal *max,PetscReal *min,PetscReal *v, int *ierr ){
91: *PetscDrawTensorContourPatch(*draw,*m,*n,x,y,*max,*min,v);
92: }
93: #if defined(__cplusplus)
94: }
95: #endif