Actual source code: pointFunctionf.c

  1: /* pointFunction.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 pointfunctionone_ PPOINTFUNCTIONONE
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define pointfunctionone_ ppointfunctionone
 34: #else
 35: #define pointfunctionone_ ppointfunctionone_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define pointfunctionone_ POINTFUNCTIONONE
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define pointfunctionone_ pointfunctionone
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define pointfunctionzero_ PPOINTFUNCTIONZERO
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define pointfunctionzero_ ppointfunctionzero
 50: #else
 51: #define pointfunctionzero_ ppointfunctionzero_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define pointfunctionzero_ POINTFUNCTIONZERO
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define pointfunctionzero_ pointfunctionzero
 58: #endif
 59: #endif

 61: #ifdef MPI_BUILD_PROFILING
 62: #ifdef PETSC_HAVE_FORTRAN_CAPS
 63: #define pointfunctionconstant_ PPOINTFUNCTIONCONSTANT
 64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 65: #define pointfunctionconstant_ ppointfunctionconstant
 66: #else
 67: #define pointfunctionconstant_ ppointfunctionconstant_
 68: #endif
 69: #else
 70: #ifdef PETSC_HAVE_FORTRAN_CAPS
 71: #define pointfunctionconstant_ POINTFUNCTIONCONSTANT
 72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 73: #define pointfunctionconstant_ pointfunctionconstant
 74: #endif
 75: #endif



 79: /* Definitions of Fortran Wrapper routines */
 80: #if defined(__cplusplus)
 81: extern "C" {
 82: #endif
 83: void PETSC_STDCALL pointfunctionone_(int *n,int *comp,double *x,double *y,double *z,PetscScalar *values,void*dummy, int *ierr ){
 84: *PointFunctionOne(*n,*comp,x,y,z,values,dummy);
 85: }
 86: void PETSC_STDCALL pointfunctionzero_(int *n,int *comp,double *x,double *y,double *z,PetscScalar *values,void*dummy, int *ierr ){
 87: *PointFunctionZero(*n,*comp,x,y,z,values,dummy);
 88: }
 89: void PETSC_STDCALL pointfunctionconstant_(int *n,int *comp,double *x,double *y,double *z,PetscScalar *values,void*ctx, int *ierr ){
 90: *PointFunctionConstant(*n,*comp,x,y,z,values,ctx);
 91: }
 92: #if defined(__cplusplus)
 93: }
 94: #endif