#include "petsc.h"
#include "petscfix.h"
/* eige.c */
/* Fortran interface file */

/*
* This file was generated automatically by bfort from the C source
* file.  
 */

#ifdef PETSC_USE_POINTER_CONVERSION
#if defined(__cplusplus)
extern "C" { 
#endif 
extern void *PetscToPointer(void*);
extern int PetscFromPointer(void *);
extern void PetscRmPointer(void*);
#if defined(__cplusplus)
} 
#endif 

#else

#define PetscToPointer(a) (*(long *)(a))
#define PetscFromPointer(a) (long)(a)
#define PetscRmPointer(a)
#endif

#include "petscksp.h"
#ifdef MPI_BUILD_PROFILING
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspcomputeexplicitoperator_ PKSPCOMPUTEEXPLICITOPERATOR
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspcomputeexplicitoperator_ pkspcomputeexplicitoperator
#else
#define kspcomputeexplicitoperator_ pkspcomputeexplicitoperator_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspcomputeexplicitoperator_ KSPCOMPUTEEXPLICITOPERATOR
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspcomputeexplicitoperator_ kspcomputeexplicitoperator
#endif
#endif

#ifdef MPI_BUILD_PROFILING
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspcomputeeigenvaluesexplicitly_ PKSPCOMPUTEEIGENVALUESEXPLICITLY
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspcomputeeigenvaluesexplicitly_ pkspcomputeeigenvaluesexplicitly
#else
#define kspcomputeeigenvaluesexplicitly_ pkspcomputeeigenvaluesexplicitly_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspcomputeeigenvaluesexplicitly_ KSPCOMPUTEEIGENVALUESEXPLICITLY
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspcomputeeigenvaluesexplicitly_ kspcomputeeigenvaluesexplicitly
#endif
#endif



/* Definitions of Fortran Wrapper routines */
#if defined(__cplusplus)
extern "C" {
#endif
void PETSC_STDCALL   kspcomputeexplicitoperator_(KSP ksp,Mat *mat, int *__ierr ){
*__ierr = KSPComputeExplicitOperator(
	(KSP)PetscToPointer((ksp) ),mat);
}
void PETSC_STDCALL   kspcomputeeigenvaluesexplicitly_(KSP ksp,PetscInt *nmax,PetscReal *r,PetscReal *c, int *__ierr ){
*__ierr = KSPComputeEigenvaluesExplicitly(
	(KSP)PetscToPointer((ksp) ),*nmax,r,c);
}
#if defined(__cplusplus)
}
#endif
