Actual source code: luf.c

  1: /* lu.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 pclusetreuseordering_ PPCLUSETREUSEORDERING
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define pclusetreuseordering_ ppclusetreuseordering
 34: #else
 35: #define pclusetreuseordering_ ppclusetreuseordering_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define pclusetreuseordering_ PCLUSETREUSEORDERING
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define pclusetreuseordering_ pclusetreuseordering
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define pclusetreusefill_ PPCLUSETREUSEFILL
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define pclusetreusefill_ ppclusetreusefill
 50: #else
 51: #define pclusetreusefill_ ppclusetreusefill_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define pclusetreusefill_ PCLUSETREUSEFILL
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define pclusetreusefill_ pclusetreusefill
 58: #endif
 59: #endif

 61: #ifdef MPI_BUILD_PROFILING
 62: #ifdef PETSC_HAVE_FORTRAN_CAPS
 63: #define pclusetfill_ PPCLUSETFILL
 64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 65: #define pclusetfill_ ppclusetfill
 66: #else
 67: #define pclusetfill_ ppclusetfill_
 68: #endif
 69: #else
 70: #ifdef PETSC_HAVE_FORTRAN_CAPS
 71: #define pclusetfill_ PCLUSETFILL
 72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 73: #define pclusetfill_ pclusetfill
 74: #endif
 75: #endif

 77: #ifdef MPI_BUILD_PROFILING
 78: #ifdef PETSC_HAVE_FORTRAN_CAPS
 79: #define pclusetdamping_ PPCLUSETDAMPING
 80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 81: #define pclusetdamping_ ppclusetdamping
 82: #else
 83: #define pclusetdamping_ ppclusetdamping_
 84: #endif
 85: #else
 86: #ifdef PETSC_HAVE_FORTRAN_CAPS
 87: #define pclusetdamping_ PCLUSETDAMPING
 88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 89: #define pclusetdamping_ pclusetdamping
 90: #endif
 91: #endif

 93: #ifdef MPI_BUILD_PROFILING
 94: #ifdef PETSC_HAVE_FORTRAN_CAPS
 95: #define pclusetuseinplace_ PPCLUSETUSEINPLACE
 96: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 97: #define pclusetuseinplace_ ppclusetuseinplace
 98: #else
 99: #define pclusetuseinplace_ ppclusetuseinplace_
100: #endif
101: #else
102: #ifdef PETSC_HAVE_FORTRAN_CAPS
103: #define pclusetuseinplace_ PCLUSETUSEINPLACE
104: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
105: #define pclusetuseinplace_ pclusetuseinplace
106: #endif
107: #endif

109: #ifdef MPI_BUILD_PROFILING
110: #ifdef PETSC_HAVE_FORTRAN_CAPS
111: #define pclusetpivoting_ PPCLUSETPIVOTING
112: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
113: #define pclusetpivoting_ ppclusetpivoting
114: #else
115: #define pclusetpivoting_ ppclusetpivoting_
116: #endif
117: #else
118: #ifdef PETSC_HAVE_FORTRAN_CAPS
119: #define pclusetpivoting_ PCLUSETPIVOTING
120: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
121: #define pclusetpivoting_ pclusetpivoting
122: #endif
123: #endif

125: #ifdef MPI_BUILD_PROFILING
126: #ifdef PETSC_HAVE_FORTRAN_CAPS
127: #define pclusetpivotinblocks_ PPCLUSETPIVOTINBLOCKS
128: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
129: #define pclusetpivotinblocks_ ppclusetpivotinblocks
130: #else
131: #define pclusetpivotinblocks_ ppclusetpivotinblocks_
132: #endif
133: #else
134: #ifdef PETSC_HAVE_FORTRAN_CAPS
135: #define pclusetpivotinblocks_ PCLUSETPIVOTINBLOCKS
136: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
137: #define pclusetpivotinblocks_ pclusetpivotinblocks
138: #endif
139: #endif



143: /* Definitions of Fortran Wrapper routines */
144: #if defined(__cplusplus)
145: extern "C" {
146: #endif
147: void PETSC_STDCALL pclusetreuseordering_(PC pc,PetscTruth *flag, int *ierr ){
148: *PCLUSetReuseOrdering(
149:         (PC)PetscToPointer( (pc) ),*flag);
150: }
151: void PETSC_STDCALL pclusetreusefill_(PC pc,PetscTruth *flag, int *ierr ){
152: *PCLUSetReuseFill(
153:         (PC)PetscToPointer( (pc) ),*flag);
154: }
155: void PETSC_STDCALL pclusetfill_(PC pc,PetscReal *fill, int *ierr ){
156: *PCLUSetFill(
157:         (PC)PetscToPointer( (pc) ),*fill);
158: }
159: void PETSC_STDCALL pclusetdamping_(PC pc,PetscReal *damping, int *ierr ){
160: *PCLUSetDamping(
161:         (PC)PetscToPointer( (pc) ),*damping);
162: }
163: void PETSC_STDCALL pclusetuseinplace_(PC pc, int *ierr ){
164: *PCLUSetUseInPlace(
165:         (PC)PetscToPointer( (pc) ));
166: }
167: void PETSC_STDCALL pclusetpivoting_(PC pc,PetscReal *dtcol, int *ierr ){
168: *PCLUSetPivoting(
169:         (PC)PetscToPointer( (pc) ),*dtcol);
170: }
171: void PETSC_STDCALL pclusetpivotinblocks_(PC pc,PetscTruth *pivot, int *ierr ){
172: *PCLUSetPivotInBlocks(
173:         (PC)PetscToPointer( (pc) ),*pivot);
174: }
175: #if defined(__cplusplus)
176: }
177: #endif