Actual source code: petscpvodef.c
1: /* petscpvode.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 petscts.h
29: #ifdef MPI_BUILD_PROFILING
30: #ifdef PETSC_HAVE_FORTRAN_CAPS
31: #define tspvodesettype_ PTSPVODESETTYPE
32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
33: #define tspvodesettype_ ptspvodesettype
34: #else
35: #define tspvodesettype_ ptspvodesettype_
36: #endif
37: #else
38: #ifdef PETSC_HAVE_FORTRAN_CAPS
39: #define tspvodesettype_ TSPVODESETTYPE
40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
41: #define tspvodesettype_ tspvodesettype
42: #endif
43: #endif
45: #ifdef MPI_BUILD_PROFILING
46: #ifdef PETSC_HAVE_FORTRAN_CAPS
47: #define tspvodesetgmresrestart_ PTSPVODESETGMRESRESTART
48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
49: #define tspvodesetgmresrestart_ ptspvodesetgmresrestart
50: #else
51: #define tspvodesetgmresrestart_ ptspvodesetgmresrestart_
52: #endif
53: #else
54: #ifdef PETSC_HAVE_FORTRAN_CAPS
55: #define tspvodesetgmresrestart_ TSPVODESETGMRESRESTART
56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
57: #define tspvodesetgmresrestart_ tspvodesetgmresrestart
58: #endif
59: #endif
61: #ifdef MPI_BUILD_PROFILING
62: #ifdef PETSC_HAVE_FORTRAN_CAPS
63: #define tspvodesetlineartolerance_ PTSPVODESETLINEARTOLERANCE
64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
65: #define tspvodesetlineartolerance_ ptspvodesetlineartolerance
66: #else
67: #define tspvodesetlineartolerance_ ptspvodesetlineartolerance_
68: #endif
69: #else
70: #ifdef PETSC_HAVE_FORTRAN_CAPS
71: #define tspvodesetlineartolerance_ TSPVODESETLINEARTOLERANCE
72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
73: #define tspvodesetlineartolerance_ tspvodesetlineartolerance
74: #endif
75: #endif
77: #ifdef MPI_BUILD_PROFILING
78: #ifdef PETSC_HAVE_FORTRAN_CAPS
79: #define tspvodesetgramschmidttype_ PTSPVODESETGRAMSCHMIDTTYPE
80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
81: #define tspvodesetgramschmidttype_ ptspvodesetgramschmidttype
82: #else
83: #define tspvodesetgramschmidttype_ ptspvodesetgramschmidttype_
84: #endif
85: #else
86: #ifdef PETSC_HAVE_FORTRAN_CAPS
87: #define tspvodesetgramschmidttype_ TSPVODESETGRAMSCHMIDTTYPE
88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
89: #define tspvodesetgramschmidttype_ tspvodesetgramschmidttype
90: #endif
91: #endif
93: #ifdef MPI_BUILD_PROFILING
94: #ifdef PETSC_HAVE_FORTRAN_CAPS
95: #define tspvodesettolerance_ PTSPVODESETTOLERANCE
96: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
97: #define tspvodesettolerance_ ptspvodesettolerance
98: #else
99: #define tspvodesettolerance_ ptspvodesettolerance_
100: #endif
101: #else
102: #ifdef PETSC_HAVE_FORTRAN_CAPS
103: #define tspvodesettolerance_ TSPVODESETTOLERANCE
104: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
105: #define tspvodesettolerance_ tspvodesettolerance
106: #endif
107: #endif
109: #ifdef MPI_BUILD_PROFILING
110: #ifdef PETSC_HAVE_FORTRAN_CAPS
111: #define tspvodegetpc_ PTSPVODEGETPC
112: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
113: #define tspvodegetpc_ ptspvodegetpc
114: #else
115: #define tspvodegetpc_ ptspvodegetpc_
116: #endif
117: #else
118: #ifdef PETSC_HAVE_FORTRAN_CAPS
119: #define tspvodegetpc_ TSPVODEGETPC
120: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
121: #define tspvodegetpc_ tspvodegetpc
122: #endif
123: #endif
125: #ifdef MPI_BUILD_PROFILING
126: #ifdef PETSC_HAVE_FORTRAN_CAPS
127: #define tspvodesetexactfinaltime_ PTSPVODESETEXACTFINALTIME
128: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
129: #define tspvodesetexactfinaltime_ ptspvodesetexactfinaltime
130: #else
131: #define tspvodesetexactfinaltime_ ptspvodesetexactfinaltime_
132: #endif
133: #else
134: #ifdef PETSC_HAVE_FORTRAN_CAPS
135: #define tspvodesetexactfinaltime_ TSPVODESETEXACTFINALTIME
136: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
137: #define tspvodesetexactfinaltime_ tspvodesetexactfinaltime
138: #endif
139: #endif
143: /* Definitions of Fortran Wrapper routines */
144: #if defined(__cplusplus)
145: extern "C" {
146: #endif
147: void PETSC_STDCALL tspvodesettype_(TS ts,TSPVodeType *type, int *ierr ){
148: *TSPVodeSetType(
149: (TS)PetscToPointer( (ts) ),*type);
150: }
151: void PETSC_STDCALL tspvodesetgmresrestart_(TS ts,int *restart, int *ierr ){
152: *TSPVodeSetGMRESRestart(
153: (TS)PetscToPointer( (ts) ),*restart);
154: }
155: void PETSC_STDCALL tspvodesetlineartolerance_(TS ts,double *tol, int *ierr ){
156: *TSPVodeSetLinearTolerance(
157: (TS)PetscToPointer( (ts) ),*tol);
158: }
159: void PETSC_STDCALL tspvodesetgramschmidttype_(TS ts,TSPVodeGramSchmidtType *type, int *ierr ){
160: *TSPVodeSetGramSchmidtType(
161: (TS)PetscToPointer( (ts) ),*type);
162: }
163: void PETSC_STDCALL tspvodesettolerance_(TS ts,double *aabs,double *rel, int *ierr ){
164: *TSPVodeSetTolerance(
165: (TS)PetscToPointer( (ts) ),*aabs,*rel);
166: }
167: void PETSC_STDCALL tspvodegetpc_(TS ts,PC *pc, int *ierr ){
168: *TSPVodeGetPC(
169: (TS)PetscToPointer( (ts) ),pc);
170: }
171: void PETSC_STDCALL tspvodesetexactfinaltime_(TS ts,PetscTruth *ft, int *ierr ){
172: *TSPVodeSetExactFinalTime(
173: (TS)PetscToPointer( (ts) ),*ft);
174: }
175: #if defined(__cplusplus)
176: }
177: #endif