Actual source code: bjacobif.c

  1: /* bjacobi.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 "petscpc.h"
 28: #ifdef MPI_BUILD_PROFILING
 29: #ifdef PETSC_HAVE_FORTRAN_CAPS
 30: #define pcbjacobisetusetruelocal_ PPCBJACOBISETUSETRUELOCAL
 31: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 32: #define pcbjacobisetusetruelocal_ ppcbjacobisetusetruelocal
 33: #else
 34: #define pcbjacobisetusetruelocal_ ppcbjacobisetusetruelocal_
 35: #endif
 36: #else
 37: #ifdef PETSC_HAVE_FORTRAN_CAPS
 38: #define pcbjacobisetusetruelocal_ PCBJACOBISETUSETRUELOCAL
 39: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 40: #define pcbjacobisetusetruelocal_ pcbjacobisetusetruelocal
 41: #endif
 42: #endif

 44: #ifdef MPI_BUILD_PROFILING
 45: #ifdef PETSC_HAVE_FORTRAN_CAPS
 46: #define pcbjacobisettotalblocks_ PPCBJACOBISETTOTALBLOCKS
 47: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 48: #define pcbjacobisettotalblocks_ ppcbjacobisettotalblocks
 49: #else
 50: #define pcbjacobisettotalblocks_ ppcbjacobisettotalblocks_
 51: #endif
 52: #else
 53: #ifdef PETSC_HAVE_FORTRAN_CAPS
 54: #define pcbjacobisettotalblocks_ PCBJACOBISETTOTALBLOCKS
 55: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 56: #define pcbjacobisettotalblocks_ pcbjacobisettotalblocks
 57: #endif
 58: #endif

 60: #ifdef MPI_BUILD_PROFILING
 61: #ifdef PETSC_HAVE_FORTRAN_CAPS
 62: #define pcbjacobisetlocalblocks_ PPCBJACOBISETLOCALBLOCKS
 63: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 64: #define pcbjacobisetlocalblocks_ ppcbjacobisetlocalblocks
 65: #else
 66: #define pcbjacobisetlocalblocks_ ppcbjacobisetlocalblocks_
 67: #endif
 68: #else
 69: #ifdef PETSC_HAVE_FORTRAN_CAPS
 70: #define pcbjacobisetlocalblocks_ PCBJACOBISETLOCALBLOCKS
 71: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 72: #define pcbjacobisetlocalblocks_ pcbjacobisetlocalblocks
 73: #endif
 74: #endif



 78: /* Definitions of Fortran Wrapper routines */
 79: #if defined(__cplusplus)
 80: extern "C" {
 81: #endif
 82: void PETSC_STDCALL pcbjacobisetusetruelocal_(PC pc, int *__ierr ){
 83: *__PCBJacobiSetUseTrueLocal(
 84:         (PC)PetscToPointer( (pc) ));
 85: }
 86: void PETSC_STDCALL pcbjacobisettotalblocks_(PC pc,int *blocks,int *lens, int *__ierr ){
 87: *__PCBJacobiSetTotalBlocks(
 88:         (PC)PetscToPointer( (pc) ),*blocks,lens);
 89: }
 90: void PETSC_STDCALL pcbjacobisetlocalblocks_(PC pc,int *blocks,int *lens, int *__ierr ){
 91: *__PCBJacobiSetLocalBlocks(
 92:         (PC)PetscToPointer( (pc) ),*blocks,lens);
 93: }
 94: #if defined(__cplusplus)
 95: }
 96: #endif