Actual source code: tri2df.c

  1: /* tri2d.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 meshcreatetriangular2dcsr_ PMESHCREATETRIANGULAR2DCSR
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define meshcreatetriangular2dcsr_ pmeshcreatetriangular2dcsr
 34: #else
 35: #define meshcreatetriangular2dcsr_ pmeshcreatetriangular2dcsr_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define meshcreatetriangular2dcsr_ MESHCREATETRIANGULAR2DCSR
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define meshcreatetriangular2dcsr_ meshcreatetriangular2dcsr
 42: #endif
 43: #endif



 47: /* Definitions of Fortran Wrapper routines */
 48: #if defined(__cplusplus)
 49: extern "C" {
 50: #endif
 51: void PETSC_STDCALL meshcreatetriangular2dcsr_(MPI_Comm *comm,int *numNodes,int *numFaces,double *nodes,int *offsets,int *adj,int *faces,Mesh *mesh, int *ierr ){
 52: *MeshCreateTriangular2DCSR(
 53:         (MPI_Comm)MPI_Comm_f2c(*(MPI_Fint*)(comm)),*numNodes,*numFaces,nodes,offsets,adj,faces,mesh);
 54: }
 55: #if defined(__cplusplus)
 56: }
 57: #endif