Actual source code: axisf.c
1: /* axis.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: #ifdef MPI_BUILD_PROFILING
30: #ifdef PETSC_HAVE_FORTRAN_CAPS
31: #define petscdrawaxissetcolors_ PPETSCDRAWAXISSETCOLORS
32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
33: #define petscdrawaxissetcolors_ ppetscdrawaxissetcolors
34: #else
35: #define petscdrawaxissetcolors_ ppetscdrawaxissetcolors_
36: #endif
37: #else
38: #ifdef PETSC_HAVE_FORTRAN_CAPS
39: #define petscdrawaxissetcolors_ PETSCDRAWAXISSETCOLORS
40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
41: #define petscdrawaxissetcolors_ petscdrawaxissetcolors
42: #endif
43: #endif
45: #ifdef MPI_BUILD_PROFILING
46: #ifdef PETSC_HAVE_FORTRAN_CAPS
47: #define petscdrawaxissetholdlimits_ PPETSCDRAWAXISSETHOLDLIMITS
48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
49: #define petscdrawaxissetholdlimits_ ppetscdrawaxissetholdlimits
50: #else
51: #define petscdrawaxissetholdlimits_ ppetscdrawaxissetholdlimits_
52: #endif
53: #else
54: #ifdef PETSC_HAVE_FORTRAN_CAPS
55: #define petscdrawaxissetholdlimits_ PETSCDRAWAXISSETHOLDLIMITS
56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
57: #define petscdrawaxissetholdlimits_ petscdrawaxissetholdlimits
58: #endif
59: #endif
61: #ifdef MPI_BUILD_PROFILING
62: #ifdef PETSC_HAVE_FORTRAN_CAPS
63: #define petscdrawaxissetlimits_ PPETSCDRAWAXISSETLIMITS
64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
65: #define petscdrawaxissetlimits_ ppetscdrawaxissetlimits
66: #else
67: #define petscdrawaxissetlimits_ ppetscdrawaxissetlimits_
68: #endif
69: #else
70: #ifdef PETSC_HAVE_FORTRAN_CAPS
71: #define petscdrawaxissetlimits_ PETSCDRAWAXISSETLIMITS
72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
73: #define petscdrawaxissetlimits_ petscdrawaxissetlimits
74: #endif
75: #endif
77: #ifdef MPI_BUILD_PROFILING
78: #ifdef PETSC_HAVE_FORTRAN_CAPS
79: #define petscdrawaxisdraw_ PPETSCDRAWAXISDRAW
80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
81: #define petscdrawaxisdraw_ ppetscdrawaxisdraw
82: #else
83: #define petscdrawaxisdraw_ ppetscdrawaxisdraw_
84: #endif
85: #else
86: #ifdef PETSC_HAVE_FORTRAN_CAPS
87: #define petscdrawaxisdraw_ PETSCDRAWAXISDRAW
88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
89: #define petscdrawaxisdraw_ petscdrawaxisdraw
90: #endif
91: #endif
95: /* Definitions of Fortran Wrapper routines */
96: #if defined(__cplusplus)
97: extern "C" {
98: #endif
99: void PETSC_STDCALL petscdrawaxissetcolors_(PetscDrawAxis *axis,int *ac,int *tc,int *cc, int *ierr ){
100: *PetscDrawAxisSetColors(*axis,*ac,*tc,*cc);
101: }
102: void PETSC_STDCALL petscdrawaxissetholdlimits_(PetscDrawAxis *axis,PetscTruth *hold, int *ierr ){
103: *PetscDrawAxisSetHoldLimits(*axis,*hold);
104: }
105: void PETSC_STDCALL petscdrawaxissetlimits_(PetscDrawAxis *axis,PetscReal *xmin,PetscReal *xmax,PetscReal *ymin,PetscReal *ymax, int *ierr ){
106: *PetscDrawAxisSetLimits(*axis,*xmin,*xmax,*ymin,*ymax);
107: }
108: void PETSC_STDCALL petscdrawaxisdraw_(PetscDrawAxis *axis, int *ierr ){
109: *PetscDrawAxisDraw(*axis);
110: }
111: #if defined(__cplusplus)
112: }
113: #endif