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 meshboundary2dcreatesimple_ PMESHBOUNDARY2DCREATESIMPLE
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define meshboundary2dcreatesimple_ pmeshboundary2dcreatesimple
 34: #else
 35: #define meshboundary2dcreatesimple_ pmeshboundary2dcreatesimple_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define meshboundary2dcreatesimple_ MESHBOUNDARY2DCREATESIMPLE
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define meshboundary2dcreatesimple_ meshboundary2dcreatesimple
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define meshboundary2ddestroy_ PMESHBOUNDARY2DDESTROY
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define meshboundary2ddestroy_ pmeshboundary2ddestroy
 50: #else
 51: #define meshboundary2ddestroy_ pmeshboundary2ddestroy_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define meshboundary2ddestroy_ MESHBOUNDARY2DDESTROY
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define meshboundary2ddestroy_ meshboundary2ddestroy
 58: #endif
 59: #endif



 63: /* Definitions of Fortran Wrapper routines */
 64: #if defined(__cplusplus)
 65: extern "C" {
 66: #endif
 67: void PETSC_STDCALL meshboundary2dcreatesimple_(MPI_Comm *comm,MeshGeometryContext *geomCtx,MeshBoundary2D *bdCtx, int *ierr ){
 68: *MeshBoundary2DCreateSimple(
 69:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),
 70:         (MeshGeometryContext* )PetscToPointer( (geomCtx) ),
 71:         (MeshBoundary2D* )PetscToPointer( (bdCtx) ));
 72: }
 73: void PETSC_STDCALL meshboundary2ddestroy_(MPI_Comm *comm,MeshBoundary2D *bdCtx, int *ierr ){
 74: *MeshBoundary2DDestroy(
 75:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),
 76:         (MeshBoundary2D* )PetscToPointer( (bdCtx) ));
 77: }
 78: #if defined(__cplusplus)
 79: }
 80: #endif