#include "petsc.h"
#include "petscfix.h"
/* gmres.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 kspgmressetcgsrefinementtype_ PKSPGMRESSETCGSREFINEMENTTYPE
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspgmressetcgsrefinementtype_ pkspgmressetcgsrefinementtype
#else
#define kspgmressetcgsrefinementtype_ pkspgmressetcgsrefinementtype_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspgmressetcgsrefinementtype_ KSPGMRESSETCGSREFINEMENTTYPE
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspgmressetcgsrefinementtype_ kspgmressetcgsrefinementtype
#endif
#endif

#ifdef MPI_BUILD_PROFILING
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspgmressethaptol_ PKSPGMRESSETHAPTOL
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspgmressethaptol_ pkspgmressethaptol
#else
#define kspgmressethaptol_ pkspgmressethaptol_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspgmressethaptol_ KSPGMRESSETHAPTOL
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspgmressethaptol_ kspgmressethaptol
#endif
#endif



/* Definitions of Fortran Wrapper routines */
#if defined(__cplusplus)
extern "C" {
#endif
void PETSC_STDCALL   kspgmressetcgsrefinementtype_(KSP ksp,KSPGMRESCGSRefinementType *type, int *__ierr ){
*__ierr = KSPGMRESSetCGSRefinementType(
	(KSP)PetscToPointer((ksp) ),*type);
}
void PETSC_STDCALL   kspgmressethaptol_(KSP ksp,PetscReal *tol, int *__ierr ){
*__ierr = KSPGMRESSetHapTol(
	(KSP)PetscToPointer((ksp) ),*tol);
}
#if defined(__cplusplus)
}
#endif
