Actual source code: combf.c

  1: /* comb.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 "petscvec.h"
 28: #ifdef MPI_BUILD_PROFILING
 29: #ifdef PETSC_HAVE_FORTRAN_CAPS
 30: #define vecdotbegin_ PVECDOTBEGIN
 31: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 32: #define vecdotbegin_ pvecdotbegin
 33: #else
 34: #define vecdotbegin_ pvecdotbegin_
 35: #endif
 36: #else
 37: #ifdef PETSC_HAVE_FORTRAN_CAPS
 38: #define vecdotbegin_ VECDOTBEGIN
 39: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 40: #define vecdotbegin_ vecdotbegin
 41: #endif
 42: #endif

 44: #ifdef MPI_BUILD_PROFILING
 45: #ifdef PETSC_HAVE_FORTRAN_CAPS
 46: #define vecdotend_ PVECDOTEND
 47: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 48: #define vecdotend_ pvecdotend
 49: #else
 50: #define vecdotend_ pvecdotend_
 51: #endif
 52: #else
 53: #ifdef PETSC_HAVE_FORTRAN_CAPS
 54: #define vecdotend_ VECDOTEND
 55: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 56: #define vecdotend_ vecdotend
 57: #endif
 58: #endif

 60: #ifdef MPI_BUILD_PROFILING
 61: #ifdef PETSC_HAVE_FORTRAN_CAPS
 62: #define vectdotbegin_ PVECTDOTBEGIN
 63: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 64: #define vectdotbegin_ pvectdotbegin
 65: #else
 66: #define vectdotbegin_ pvectdotbegin_
 67: #endif
 68: #else
 69: #ifdef PETSC_HAVE_FORTRAN_CAPS
 70: #define vectdotbegin_ VECTDOTBEGIN
 71: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 72: #define vectdotbegin_ vectdotbegin
 73: #endif
 74: #endif

 76: #ifdef MPI_BUILD_PROFILING
 77: #ifdef PETSC_HAVE_FORTRAN_CAPS
 78: #define vectdotend_ PVECTDOTEND
 79: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 80: #define vectdotend_ pvectdotend
 81: #else
 82: #define vectdotend_ pvectdotend_
 83: #endif
 84: #else
 85: #ifdef PETSC_HAVE_FORTRAN_CAPS
 86: #define vectdotend_ VECTDOTEND
 87: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 88: #define vectdotend_ vectdotend
 89: #endif
 90: #endif

 92: #ifdef MPI_BUILD_PROFILING
 93: #ifdef PETSC_HAVE_FORTRAN_CAPS
 94: #define vecnormbegin_ PVECNORMBEGIN
 95: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 96: #define vecnormbegin_ pvecnormbegin
 97: #else
 98: #define vecnormbegin_ pvecnormbegin_
 99: #endif
100: #else
101: #ifdef PETSC_HAVE_FORTRAN_CAPS
102: #define vecnormbegin_ VECNORMBEGIN
103: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
104: #define vecnormbegin_ vecnormbegin
105: #endif
106: #endif

108: #ifdef MPI_BUILD_PROFILING
109: #ifdef PETSC_HAVE_FORTRAN_CAPS
110: #define vecnormend_ PVECNORMEND
111: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
112: #define vecnormend_ pvecnormend
113: #else
114: #define vecnormend_ pvecnormend_
115: #endif
116: #else
117: #ifdef PETSC_HAVE_FORTRAN_CAPS
118: #define vecnormend_ VECNORMEND
119: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
120: #define vecnormend_ vecnormend
121: #endif
122: #endif



126: /* Definitions of Fortran Wrapper routines */
127: #if defined(__cplusplus)
128: extern "C" {
129: #endif
130: void PETSC_STDCALL vecdotbegin_(Vec x,Vec y,Scalar *result, int *__ierr ){
131: *__VecDotBegin(
132:         (Vec)PetscToPointer( (x) ),
133:         (Vec)PetscToPointer( (y) ),result);
134: }
135: void PETSC_STDCALL vecdotend_(Vec x,Vec y,Scalar *result, int *__ierr ){
136: *__VecDotEnd(
137:         (Vec)PetscToPointer( (x) ),
138:         (Vec)PetscToPointer( (y) ),result);
139: }
140: void PETSC_STDCALL vectdotbegin_(Vec x,Vec y,Scalar *result, int *__ierr ){
141: *__VecTDotBegin(
142:         (Vec)PetscToPointer( (x) ),
143:         (Vec)PetscToPointer( (y) ),result);
144: }
145: void PETSC_STDCALL vectdotend_(Vec x,Vec y,Scalar *result, int *__ierr ){
146: *__VecTDotEnd(
147:         (Vec)PetscToPointer( (x) ),
148:         (Vec)PetscToPointer( (y) ),result);
149: }
150: void PETSC_STDCALL vecnormbegin_(Vec x,NormType *ntype,PetscReal *result, int *__ierr ){
151: *__VecNormBegin(
152:         (Vec)PetscToPointer( (x) ),*ntype,result);
153: }
154: void PETSC_STDCALL vecnormend_(Vec x,NormType *ntype,PetscReal *result, int *__ierr ){
155: *__VecNormEnd(
156:         (Vec)PetscToPointer( (x) ),*ntype,result);
157: }
158: #if defined(__cplusplus)
159: }
160: #endif