Actual source code: meshBoundaryf.c

  1: /* meshBoundary.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 meshboundary1dcreatesimple_ PMESHBOUNDARY1DCREATESIMPLE
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define meshboundary1dcreatesimple_ pmeshboundary1dcreatesimple
 34: #else
 35: #define meshboundary1dcreatesimple_ pmeshboundary1dcreatesimple_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define meshboundary1dcreatesimple_ MESHBOUNDARY1DCREATESIMPLE
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define meshboundary1dcreatesimple_ meshboundary1dcreatesimple
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define meshboundary1ddestroy_ PMESHBOUNDARY1DDESTROY
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define meshboundary1ddestroy_ pmeshboundary1ddestroy
 50: #else
 51: #define meshboundary1ddestroy_ pmeshboundary1ddestroy_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define meshboundary1ddestroy_ MESHBOUNDARY1DDESTROY
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define meshboundary1ddestroy_ meshboundary1ddestroy
 58: #endif
 59: #endif

 61: #ifdef MPI_BUILD_PROFILING
 62: #ifdef PETSC_HAVE_FORTRAN_CAPS
 63: #define meshboundary2dcreatesimple_ PMESHBOUNDARY2DCREATESIMPLE
 64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 65: #define meshboundary2dcreatesimple_ pmeshboundary2dcreatesimple
 66: #else
 67: #define meshboundary2dcreatesimple_ pmeshboundary2dcreatesimple_
 68: #endif
 69: #else
 70: #ifdef PETSC_HAVE_FORTRAN_CAPS
 71: #define meshboundary2dcreatesimple_ MESHBOUNDARY2DCREATESIMPLE
 72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 73: #define meshboundary2dcreatesimple_ meshboundary2dcreatesimple
 74: #endif
 75: #endif

 77: #ifdef MPI_BUILD_PROFILING
 78: #ifdef PETSC_HAVE_FORTRAN_CAPS
 79: #define meshboundary2ddestroy_ PMESHBOUNDARY2DDESTROY
 80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 81: #define meshboundary2ddestroy_ pmeshboundary2ddestroy
 82: #else
 83: #define meshboundary2ddestroy_ pmeshboundary2ddestroy_
 84: #endif
 85: #else
 86: #ifdef PETSC_HAVE_FORTRAN_CAPS
 87: #define meshboundary2ddestroy_ MESHBOUNDARY2DDESTROY
 88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 89: #define meshboundary2ddestroy_ meshboundary2ddestroy
 90: #endif
 91: #endif



 95: /* Definitions of Fortran Wrapper routines */
 96: #if defined(__cplusplus)
 97: extern "C" {
 98: #endif
 99: void PETSC_STDCALL meshboundary1dcreatesimple_(MPI_Comm *comm,MeshGeometryContext *geomCtx,MeshBoundary2D *bdCtx, int *ierr ){
100: *MeshBoundary1DCreateSimple(
101:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),
102:         (MeshGeometryContext* )PetscToPointer( (geomCtx) ),
103:         (MeshBoundary2D* )PetscToPointer( (bdCtx) ));
104: }
105: void PETSC_STDCALL meshboundary1ddestroy_(MPI_Comm *comm,MeshBoundary2D *bdCtx, int *ierr ){
106: *MeshBoundary1DDestroy(
107:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),
108:         (MeshBoundary2D* )PetscToPointer( (bdCtx) ));
109: }
110: void PETSC_STDCALL meshboundary2dcreatesimple_(MPI_Comm *comm,MeshGeometryContext *geomCtx,MeshBoundary2D *bdCtx, int *ierr ){
111: *MeshBoundary2DCreateSimple(
112:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),
113:         (MeshGeometryContext* )PetscToPointer( (geomCtx) ),
114:         (MeshBoundary2D* )PetscToPointer( (bdCtx) ));
115: }
116: void PETSC_STDCALL meshboundary2ddestroy_(MPI_Comm *comm,MeshBoundary2D *bdCtx, int *ierr ){
117: *MeshBoundary2DDestroy(
118:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),
119:         (MeshBoundary2D* )PetscToPointer( (bdCtx) ));
120: }
121: #if defined(__cplusplus)
122: }
123: #endif