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