Actual source code: regf.c

  1: /* reg.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 petsc.h
 29: #ifdef MPI_BUILD_PROFILING
 30: #ifdef PETSC_HAVE_FORTRAN_CAPS
 31: #define petscflistdestroy_ PPETSCFLISTDESTROY
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define petscflistdestroy_ ppetscflistdestroy
 34: #else
 35: #define petscflistdestroy_ ppetscflistdestroy_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define petscflistdestroy_ PETSCFLISTDESTROY
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define petscflistdestroy_ petscflistdestroy
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define petscflistview_ PPETSCFLISTVIEW
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define petscflistview_ ppetscflistview
 50: #else
 51: #define petscflistview_ ppetscflistview_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define petscflistview_ PETSCFLISTVIEW
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define petscflistview_ petscflistview
 58: #endif
 59: #endif

 61: #ifdef MPI_BUILD_PROFILING
 62: #ifdef PETSC_HAVE_FORTRAN_CAPS
 63: #define petscflistget_ PPETSCFLISTGET
 64: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 65: #define petscflistget_ ppetscflistget
 66: #else
 67: #define petscflistget_ ppetscflistget_
 68: #endif
 69: #else
 70: #ifdef PETSC_HAVE_FORTRAN_CAPS
 71: #define petscflistget_ PETSCFLISTGET
 72: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 73: #define petscflistget_ petscflistget
 74: #endif
 75: #endif

 77: #ifdef MPI_BUILD_PROFILING
 78: #ifdef PETSC_HAVE_FORTRAN_CAPS
 79: #define petscflistduplicate_ PPETSCFLISTDUPLICATE
 80: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 81: #define petscflistduplicate_ ppetscflistduplicate
 82: #else
 83: #define petscflistduplicate_ ppetscflistduplicate_
 84: #endif
 85: #else
 86: #ifdef PETSC_HAVE_FORTRAN_CAPS
 87: #define petscflistduplicate_ PETSCFLISTDUPLICATE
 88: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 89: #define petscflistduplicate_ petscflistduplicate
 90: #endif
 91: #endif



 95: /* Definitions of Fortran Wrapper routines */
 96: #if defined(__cplusplus)
 97: extern "C" {
 98: #endif
 99: void PETSC_STDCALL petscflistdestroy_(PetscFList *fl, int *ierr ){
100: *PetscFListDestroy(
101:         (PetscFList* )PetscToPointer( (fl) ));
102: }
103: void PETSC_STDCALL petscflistview_(PetscFList *list,PetscViewer *viewer, int *ierr ){
104: *PetscFListView(*list,*viewer);
105: }
106: void PETSC_STDCALL petscflistget_(PetscFList *list,char ***array,int *n, int *ierr ){
107: *PetscFListGet(*list,array,n);
108: }
109: void PETSC_STDCALL petscflistduplicate_(PetscFList *fl,PetscFList *nl, int *ierr ){
110: *PetscFListDuplicate(*fl,
111:         (PetscFList* )PetscToPointer( (nl) ));
112: }
113: #if defined(__cplusplus)
114: }
115: #endif