Actual source code: compositef.c

  1: /* composite.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 petscpc.h
 29: #include "petscfix.h"
 30:  #include petscsles.h
 31: #ifdef MPI_BUILD_PROFILING
 32: #ifdef PETSC_HAVE_FORTRAN_CAPS
 33: #define pccompositesetusetrue_ PPCCOMPOSITESETUSETRUE
 34: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 35: #define pccompositesetusetrue_ ppccompositesetusetrue
 36: #else
 37: #define pccompositesetusetrue_ ppccompositesetusetrue_
 38: #endif
 39: #else
 40: #ifdef PETSC_HAVE_FORTRAN_CAPS
 41: #define pccompositesetusetrue_ PCCOMPOSITESETUSETRUE
 42: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 43: #define pccompositesetusetrue_ pccompositesetusetrue
 44: #endif
 45: #endif



 49: /* Definitions of Fortran Wrapper routines */
 50: #if defined(__cplusplus)
 51: extern "C" {
 52: #endif
 53: void PETSC_STDCALL pccompositesetusetrue_(PC pc, int *ierr ){
 54: *PCCompositeSetUseTrue(
 55:         (PC)PetscToPointer( (pc) ));
 56: }
 57: #if defined(__cplusplus)
 58: }
 59: #endif