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

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

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

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

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

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



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