#include "petsc.h"
#include "petscfix.h"
/* qcg.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 kspqcgsettrustregionradius_ PKSPQCGSETTRUSTREGIONRADIUS
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspqcgsettrustregionradius_ pkspqcgsettrustregionradius
#else
#define kspqcgsettrustregionradius_ pkspqcgsettrustregionradius_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspqcgsettrustregionradius_ KSPQCGSETTRUSTREGIONRADIUS
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspqcgsettrustregionradius_ kspqcgsettrustregionradius
#endif
#endif

#ifdef MPI_BUILD_PROFILING
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspqcggettrialstepnorm_ PKSPQCGGETTRIALSTEPNORM
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspqcggettrialstepnorm_ pkspqcggettrialstepnorm
#else
#define kspqcggettrialstepnorm_ pkspqcggettrialstepnorm_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspqcggettrialstepnorm_ KSPQCGGETTRIALSTEPNORM
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspqcggettrialstepnorm_ kspqcggettrialstepnorm
#endif
#endif

#ifdef MPI_BUILD_PROFILING
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspqcggetquadratic_ PKSPQCGGETQUADRATIC
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspqcggetquadratic_ pkspqcggetquadratic
#else
#define kspqcggetquadratic_ pkspqcggetquadratic_
#endif
#else
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define kspqcggetquadratic_ KSPQCGGETQUADRATIC
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define kspqcggetquadratic_ kspqcggetquadratic
#endif
#endif



/* Definitions of Fortran Wrapper routines */
#if defined(__cplusplus)
extern "C" {
#endif
void PETSC_STDCALL   kspqcgsettrustregionradius_(KSP ksp,PetscReal *delta, int *__ierr ){
*__ierr = KSPQCGSetTrustRegionRadius(
	(KSP)PetscToPointer((ksp) ),*delta);
}
void PETSC_STDCALL   kspqcggettrialstepnorm_(KSP ksp,PetscReal *tsnorm, int *__ierr ){
*__ierr = KSPQCGGetTrialStepNorm(
	(KSP)PetscToPointer((ksp) ),tsnorm);
}
void PETSC_STDCALL   kspqcggetquadratic_(KSP ksp,PetscReal *quadratic, int *__ierr ){
*__ierr = KSPQCGGetQuadratic(
	(KSP)PetscToPointer((ksp) ),quadratic);
}
#if defined(__cplusplus)
}
#endif
