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
127: /* Definitions of Fortran Wrapper routines */
128: #if defined(__cplusplus)
129: extern "C" {
130: #endif
131: void PETSC_STDCALL pclusetreuseordering_(PC pc,PetscTruth *flag, int *ierr ){
132: *PCLUSetReuseOrdering(
133: (PC)PetscToPointer( (pc) ),*flag);
134: }
135: void PETSC_STDCALL pclusetreusefill_(PC pc,PetscTruth *flag, int *ierr ){
136: *PCLUSetReuseFill(
137: (PC)PetscToPointer( (pc) ),*flag);
138: }
139: void PETSC_STDCALL pclusetfill_(PC pc,PetscReal *fill, int *ierr ){
140: *PCLUSetFill(
141: (PC)PetscToPointer( (pc) ),*fill);
142: }
143: void PETSC_STDCALL pclusetdamping_(PC pc,PetscReal *damping, int *ierr ){
144: *PCLUSetDamping(
145: (PC)PetscToPointer( (pc) ),*damping);
146: }
147: void PETSC_STDCALL pclusetuseinplace_(PC pc, int *ierr ){
148: *PCLUSetUseInPlace(
149: (PC)PetscToPointer( (pc) ));
150: }
151: void PETSC_STDCALL pclusetpivoting_(PC pc,PetscReal *dtcol, int *ierr ){
152: *PCLUSetPivoting(
153: (PC)PetscToPointer( (pc) ),*dtcol);
154: }
155: #if defined(__cplusplus)
156: }
157: #endif