Actual source code: itcreatef.c

  1: /* itcreate.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 petscksp.h
 28: #ifdef MPI_BUILD_PROFILING
 29: #ifdef PETSC_HAVE_FORTRAN_CAPS
 30: #define kspsetfromoptions_ PKSPSETFROMOPTIONS
 31: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 32: #define kspsetfromoptions_ pkspsetfromoptions
 33: #else
 34: #define kspsetfromoptions_ pkspsetfromoptions_
 35: #endif
 36: #else
 37: #ifdef PETSC_HAVE_FORTRAN_CAPS
 38: #define kspsetfromoptions_ KSPSETFROMOPTIONS
 39: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 40: #define kspsetfromoptions_ kspsetfromoptions
 41: #endif
 42: #endif



 46: /* Definitions of Fortran Wrapper routines */
 47: #if defined(__cplusplus)
 48: extern "C" {
 49: #endif
 50: void PETSC_STDCALL kspsetfromoptions_(KSP ksp, int *__ierr ){
 51: *__KSPSetFromOptions(
 52:         (KSP)PetscToPointer( (ksp) ));
 53: }
 54: #if defined(__cplusplus)
 55: }
 56: #endif