Actual source code: iluf.c

  1: /* ilu.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 petscpc.h
 29: #ifdef MPI_BUILD_PROFILING
 30: #ifdef PETSC_HAVE_FORTRAN_CAPS
 31: #define pcilusetsingleprecisionsolves_ PPCILUSETSINGLEPRECISIONSOLVES
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define pcilusetsingleprecisionsolves_ ppcilusetsingleprecisionsolves
 34: #else
 35: #define pcilusetsingleprecisionsolves_ ppcilusetsingleprecisionsolves_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define pcilusetsingleprecisionsolves_ PCILUSETSINGLEPRECISIONSOLVES
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define pcilusetsingleprecisionsolves_ pcilusetsingleprecisionsolves
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define pcilusetdamping_ PPCILUSETDAMPING
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define pcilusetdamping_ ppcilusetdamping
 50: #else
 51: #define pcilusetdamping_ ppcilusetdamping_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define pcilusetdamping_ PCILUSETDAMPING
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define pcilusetdamping_ pcilusetdamping
 58: #endif
 59: #endif

 61: #ifdef MPI_BUILD_PROFILING
 62: #ifdef PETSC_HAVE_FORTRAN_CAPS
 63: #define pcilusetusedroptolerance_ PPCILUSETUSEDROPTOLERANCE
 64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 65: #define pcilusetusedroptolerance_ ppcilusetusedroptolerance
 66: #else
 67: #define pcilusetusedroptolerance_ ppcilusetusedroptolerance_
 68: #endif
 69: #else
 70: #ifdef PETSC_HAVE_FORTRAN_CAPS
 71: #define pcilusetusedroptolerance_ PCILUSETUSEDROPTOLERANCE
 72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 73: #define pcilusetusedroptolerance_ pcilusetusedroptolerance
 74: #endif
 75: #endif

 77: #ifdef MPI_BUILD_PROFILING
 78: #ifdef PETSC_HAVE_FORTRAN_CAPS
 79: #define pcilusetfill_ PPCILUSETFILL
 80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 81: #define pcilusetfill_ ppcilusetfill
 82: #else
 83: #define pcilusetfill_ ppcilusetfill_
 84: #endif
 85: #else
 86: #ifdef PETSC_HAVE_FORTRAN_CAPS
 87: #define pcilusetfill_ PCILUSETFILL
 88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 89: #define pcilusetfill_ pcilusetfill
 90: #endif
 91: #endif

 93: #ifdef MPI_BUILD_PROFILING
 94: #ifdef PETSC_HAVE_FORTRAN_CAPS
 95: #define pcilusetreuseordering_ PPCILUSETREUSEORDERING
 96: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 97: #define pcilusetreuseordering_ ppcilusetreuseordering
 98: #else
 99: #define pcilusetreuseordering_ ppcilusetreuseordering_
100: #endif
101: #else
102: #ifdef PETSC_HAVE_FORTRAN_CAPS
103: #define pcilusetreuseordering_ PCILUSETREUSEORDERING
104: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
105: #define pcilusetreuseordering_ pcilusetreuseordering
106: #endif
107: #endif

109: #ifdef MPI_BUILD_PROFILING
110: #ifdef PETSC_HAVE_FORTRAN_CAPS
111: #define pciludtsetreusefill_ PPCILUDTSETREUSEFILL
112: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
113: #define pciludtsetreusefill_ ppciludtsetreusefill
114: #else
115: #define pciludtsetreusefill_ ppciludtsetreusefill_
116: #endif
117: #else
118: #ifdef PETSC_HAVE_FORTRAN_CAPS
119: #define pciludtsetreusefill_ PCILUDTSETREUSEFILL
120: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
121: #define pciludtsetreusefill_ pciludtsetreusefill
122: #endif
123: #endif

125: #ifdef MPI_BUILD_PROFILING
126: #ifdef PETSC_HAVE_FORTRAN_CAPS
127: #define pcilusetlevels_ PPCILUSETLEVELS
128: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
129: #define pcilusetlevels_ ppcilusetlevels
130: #else
131: #define pcilusetlevels_ ppcilusetlevels_
132: #endif
133: #else
134: #ifdef PETSC_HAVE_FORTRAN_CAPS
135: #define pcilusetlevels_ PCILUSETLEVELS
136: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
137: #define pcilusetlevels_ pcilusetlevels
138: #endif
139: #endif

141: #ifdef MPI_BUILD_PROFILING
142: #ifdef PETSC_HAVE_FORTRAN_CAPS
143: #define pcilusetallowdiagonalfill_ PPCILUSETALLOWDIAGONALFILL
144: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
145: #define pcilusetallowdiagonalfill_ ppcilusetallowdiagonalfill
146: #else
147: #define pcilusetallowdiagonalfill_ ppcilusetallowdiagonalfill_
148: #endif
149: #else
150: #ifdef PETSC_HAVE_FORTRAN_CAPS
151: #define pcilusetallowdiagonalfill_ PCILUSETALLOWDIAGONALFILL
152: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
153: #define pcilusetallowdiagonalfill_ pcilusetallowdiagonalfill
154: #endif
155: #endif

157: #ifdef MPI_BUILD_PROFILING
158: #ifdef PETSC_HAVE_FORTRAN_CAPS
159: #define pcilusetuseinplace_ PPCILUSETUSEINPLACE
160: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
161: #define pcilusetuseinplace_ ppcilusetuseinplace
162: #else
163: #define pcilusetuseinplace_ ppcilusetuseinplace_
164: #endif
165: #else
166: #ifdef PETSC_HAVE_FORTRAN_CAPS
167: #define pcilusetuseinplace_ PCILUSETUSEINPLACE
168: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
169: #define pcilusetuseinplace_ pcilusetuseinplace
170: #endif
171: #endif

173: #ifdef MPI_BUILD_PROFILING
174: #ifdef PETSC_HAVE_FORTRAN_CAPS
175: #define pcilusetpivotinblocks_ PPCILUSETPIVOTINBLOCKS
176: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
177: #define pcilusetpivotinblocks_ ppcilusetpivotinblocks
178: #else
179: #define pcilusetpivotinblocks_ ppcilusetpivotinblocks_
180: #endif
181: #else
182: #ifdef PETSC_HAVE_FORTRAN_CAPS
183: #define pcilusetpivotinblocks_ PCILUSETPIVOTINBLOCKS
184: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
185: #define pcilusetpivotinblocks_ pcilusetpivotinblocks
186: #endif
187: #endif



191: /* Definitions of Fortran Wrapper routines */
192: #if defined(__cplusplus)
193: extern "C" {
194: #endif
195: void PETSC_STDCALL pcilusetsingleprecisionsolves_(PC pc,PetscTruth *flag, int *ierr ){
196: *PCILUSetSinglePrecisionSolves(
197:         (PC)PetscToPointer( (pc) ),*flag);
198: }
199: void PETSC_STDCALL pcilusetdamping_(PC pc,PetscReal *damping, int *ierr ){
200: *PCILUSetDamping(
201:         (PC)PetscToPointer( (pc) ),*damping);
202: }
203: void PETSC_STDCALL pcilusetusedroptolerance_(PC pc,PetscReal *dt,PetscReal *dtcol,int *maxrowcount, int *ierr ){
204: *PCILUSetUseDropTolerance(
205:         (PC)PetscToPointer( (pc) ),*dt,*dtcol,*maxrowcount);
206: }
207: void PETSC_STDCALL pcilusetfill_(PC pc,PetscReal *fill, int *ierr ){
208: *PCILUSetFill(
209:         (PC)PetscToPointer( (pc) ),*fill);
210: }
211: void PETSC_STDCALL pcilusetreuseordering_(PC pc,PetscTruth *flag, int *ierr ){
212: *PCILUSetReuseOrdering(
213:         (PC)PetscToPointer( (pc) ),*flag);
214: }
215: void PETSC_STDCALL pciludtsetreusefill_(PC pc,PetscTruth *flag, int *ierr ){
216: *PCILUDTSetReuseFill(
217:         (PC)PetscToPointer( (pc) ),*flag);
218: }
219: void PETSC_STDCALL pcilusetlevels_(PC pc,int *levels, int *ierr ){
220: *PCILUSetLevels(
221:         (PC)PetscToPointer( (pc) ),*levels);
222: }
223: void PETSC_STDCALL pcilusetallowdiagonalfill_(PC pc, int *ierr ){
224: *PCILUSetAllowDiagonalFill(
225:         (PC)PetscToPointer( (pc) ));
226: }
227: void PETSC_STDCALL pcilusetuseinplace_(PC pc, int *ierr ){
228: *PCILUSetUseInPlace(
229:         (PC)PetscToPointer( (pc) ));
230: }
231: void PETSC_STDCALL pcilusetpivotinblocks_(PC pc,PetscTruth *pivot, int *ierr ){
232: *PCILUSetPivotInBlocks(
233:         (PC)PetscToPointer( (pc) ),*pivot);
234: }
235: #if defined(__cplusplus)
236: }
237: #endif