Actual source code: partf.c
1: /* part.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 mesh.h
29: #ifdef MPI_BUILD_PROFILING
30: #ifdef PETSC_HAVE_FORTRAN_CAPS
31: #define partitionsetup_ PPARTITIONSETUP
32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
33: #define partitionsetup_ ppartitionsetup
34: #else
35: #define partitionsetup_ ppartitionsetup_
36: #endif
37: #else
38: #ifdef PETSC_HAVE_FORTRAN_CAPS
39: #define partitionsetup_ PARTITIONSETUP
40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
41: #define partitionsetup_ partitionsetup
42: #endif
43: #endif
45: #ifdef MPI_BUILD_PROFILING
46: #ifdef PETSC_HAVE_FORTRAN_CAPS
47: #define partitionsetfromoptions_ PPARTITIONSETFROMOPTIONS
48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
49: #define partitionsetfromoptions_ ppartitionsetfromoptions
50: #else
51: #define partitionsetfromoptions_ ppartitionsetfromoptions_
52: #endif
53: #else
54: #ifdef PETSC_HAVE_FORTRAN_CAPS
55: #define partitionsetfromoptions_ PARTITIONSETFROMOPTIONS
56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
57: #define partitionsetfromoptions_ partitionsetfromoptions
58: #endif
59: #endif
61: #ifdef MPI_BUILD_PROFILING
62: #ifdef PETSC_HAVE_FORTRAN_CAPS
63: #define partitionview_ PPARTITIONVIEW
64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
65: #define partitionview_ ppartitionview
66: #else
67: #define partitionview_ ppartitionview_
68: #endif
69: #else
70: #ifdef PETSC_HAVE_FORTRAN_CAPS
71: #define partitionview_ PARTITIONVIEW
72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
73: #define partitionview_ partitionview
74: #endif
75: #endif
77: #ifdef MPI_BUILD_PROFILING
78: #ifdef PETSC_HAVE_FORTRAN_CAPS
79: #define partitioncopy_ PPARTITIONCOPY
80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
81: #define partitioncopy_ ppartitioncopy
82: #else
83: #define partitioncopy_ ppartitioncopy_
84: #endif
85: #else
86: #ifdef PETSC_HAVE_FORTRAN_CAPS
87: #define partitioncopy_ PARTITIONCOPY
88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
89: #define partitioncopy_ partitioncopy
90: #endif
91: #endif
93: #ifdef MPI_BUILD_PROFILING
94: #ifdef PETSC_HAVE_FORTRAN_CAPS
95: #define partitionduplicate_ PPARTITIONDUPLICATE
96: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
97: #define partitionduplicate_ ppartitionduplicate
98: #else
99: #define partitionduplicate_ ppartitionduplicate_
100: #endif
101: #else
102: #ifdef PETSC_HAVE_FORTRAN_CAPS
103: #define partitionduplicate_ PARTITIONDUPLICATE
104: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
105: #define partitionduplicate_ partitionduplicate
106: #endif
107: #endif
109: #ifdef MPI_BUILD_PROFILING
110: #ifdef PETSC_HAVE_FORTRAN_CAPS
111: #define partitiondestroy_ PPARTITIONDESTROY
112: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
113: #define partitiondestroy_ ppartitiondestroy
114: #else
115: #define partitiondestroy_ ppartitiondestroy_
116: #endif
117: #else
118: #ifdef PETSC_HAVE_FORTRAN_CAPS
119: #define partitiondestroy_ PARTITIONDESTROY
120: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
121: #define partitiondestroy_ partitiondestroy
122: #endif
123: #endif
125: #ifdef MPI_BUILD_PROFILING
126: #ifdef PETSC_HAVE_FORTRAN_CAPS
127: #define partitiongetoptionsprefix_ PPARTITIONGETOPTIONSPREFIX
128: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
129: #define partitiongetoptionsprefix_ ppartitiongetoptionsprefix
130: #else
131: #define partitiongetoptionsprefix_ ppartitiongetoptionsprefix_
132: #endif
133: #else
134: #ifdef PETSC_HAVE_FORTRAN_CAPS
135: #define partitiongetoptionsprefix_ PARTITIONGETOPTIONSPREFIX
136: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
137: #define partitiongetoptionsprefix_ partitiongetoptionsprefix
138: #endif
139: #endif
141: #ifdef MPI_BUILD_PROFILING
142: #ifdef PETSC_HAVE_FORTRAN_CAPS
143: #define partitionprinthelp_ PPARTITIONPRINTHELP
144: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
145: #define partitionprinthelp_ ppartitionprinthelp
146: #else
147: #define partitionprinthelp_ ppartitionprinthelp_
148: #endif
149: #else
150: #ifdef PETSC_HAVE_FORTRAN_CAPS
151: #define partitionprinthelp_ PARTITIONPRINTHELP
152: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
153: #define partitionprinthelp_ partitionprinthelp
154: #endif
155: #endif
159: /* Definitions of Fortran Wrapper routines */
160: #if defined(__cplusplus)
161: extern "C" {
162: #endif
163: void PETSC_STDCALL partitionsetup_(Partition part, int *ierr ){
164: *PartitionSetUp(
165: (Partition)PetscToPointer( (part) ));
166: }
167: void PETSC_STDCALL partitionsetfromoptions_(Partition part, int *ierr ){
168: *PartitionSetFromOptions(
169: (Partition)PetscToPointer( (part) ));
170: }
171: void PETSC_STDCALL partitionview_(Partition part,PetscViewer *viewer, int *ierr ){
172: *PartitionView(
173: (Partition)PetscToPointer( (part) ),*viewer);
174: }
175: void PETSC_STDCALL partitioncopy_(Partition part,Partition newpart, int *ierr ){
176: *PartitionCopy(
177: (Partition)PetscToPointer( (part) ),
178: (Partition)PetscToPointer( (newpart) ));
179: }
180: void PETSC_STDCALL partitionduplicate_(Partition part,Partition *newpart, int *ierr ){
181: *PartitionDuplicate(
182: (Partition)PetscToPointer( (part) ),newpart);
183: }
184: void PETSC_STDCALL partitiondestroy_(Partition part, int *ierr ){
185: *PartitionDestroy(
186: (Partition)PetscToPointer( (part) ));
187: }
188: void PETSC_STDCALL partitiongetoptionsprefix_(Partition part,char **prefix, int *ierr ){
189: *PartitionGetOptionsPrefix(
190: (Partition)PetscToPointer( (part) ),prefix);
191: }
192: void PETSC_STDCALL partitionprinthelp_(Partition part, int *ierr ){
193: *PartitionPrintHelp(
194: (Partition)PetscToPointer( (part) ));
195: }
196: #if defined(__cplusplus)
197: }
198: #endif