Actual source code: eigef.c

  1: /* eige.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 petscksp.h
 29: #ifdef MPI_BUILD_PROFILING
 30: #ifdef PETSC_HAVE_FORTRAN_CAPS
 31: #define kspcomputeexplicitoperator_ PKSPCOMPUTEEXPLICITOPERATOR
 32: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 33: #define kspcomputeexplicitoperator_ pkspcomputeexplicitoperator
 34: #else
 35: #define kspcomputeexplicitoperator_ pkspcomputeexplicitoperator_
 36: #endif
 37: #else
 38: #ifdef PETSC_HAVE_FORTRAN_CAPS
 39: #define kspcomputeexplicitoperator_ KSPCOMPUTEEXPLICITOPERATOR
 40: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 41: #define kspcomputeexplicitoperator_ kspcomputeexplicitoperator
 42: #endif
 43: #endif

 45: #ifdef MPI_BUILD_PROFILING
 46: #ifdef PETSC_HAVE_FORTRAN_CAPS
 47: #define kspcomputeeigenvaluesexplicitly_ PKSPCOMPUTEEIGENVALUESEXPLICITLY
 48: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 49: #define kspcomputeeigenvaluesexplicitly_ pkspcomputeeigenvaluesexplicitly
 50: #else
 51: #define kspcomputeeigenvaluesexplicitly_ pkspcomputeeigenvaluesexplicitly_
 52: #endif
 53: #else
 54: #ifdef PETSC_HAVE_FORTRAN_CAPS
 55: #define kspcomputeeigenvaluesexplicitly_ KSPCOMPUTEEIGENVALUESEXPLICITLY
 56: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
 57: #define kspcomputeeigenvaluesexplicitly_ kspcomputeeigenvaluesexplicitly
 58: #endif
 59: #endif



 63: /* Definitions of Fortran Wrapper routines */
 64: #if defined(__cplusplus)
 65: extern "C" {
 66: #endif
 67: void PETSC_STDCALL kspcomputeexplicitoperator_(KSP ksp,Mat *mat, int *ierr ){
 68: *KSPComputeExplicitOperator(
 69:         (KSP)PetscToPointer( (ksp) ),mat);
 70: }
 71: void PETSC_STDCALL kspcomputeeigenvaluesexplicitly_(KSP ksp,int *nmax,PetscReal *r,PetscReal *c, int *ierr ){
 72: *KSPComputeEigenvaluesExplicitly(
 73:         (KSP)PetscToPointer( (ksp) ),*nmax,r,c);
 74: }
 75: #if defined(__cplusplus)
 76: }
 77: #endif