#include "petscsys.h"
#include "petscfix.h"
#include "petsc/private/fortranimpl.h"
/* lmvmpc.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) (*(PetscFortranAddr *)(a))
#define PetscFromPointer(a) (PetscFortranAddr)(a)
#define PetscRmPointer(a)
#endif

#include "petscpc.h"
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define pclmvmsetupdatevec_ PCLMVMSETUPDATEVEC
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define pclmvmsetupdatevec_ pclmvmsetupdatevec
#endif
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define pclmvmsetmatlmvm_ PCLMVMSETMATLMVM
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define pclmvmsetmatlmvm_ pclmvmsetmatlmvm
#endif
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define pclmvmgetmatlmvm_ PCLMVMGETMATLMVM
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define pclmvmgetmatlmvm_ pclmvmgetmatlmvm
#endif
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define pclmvmsetis_ PCLMVMSETIS
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define pclmvmsetis_ pclmvmsetis
#endif
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define pclmvmclearis_ PCLMVMCLEARIS
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define pclmvmclearis_ pclmvmclearis
#endif


/* Definitions of Fortran Wrapper routines */
#if defined(__cplusplus)
extern "C" {
#endif
PETSC_EXTERN void  pclmvmsetupdatevec_(PC pc,Vec X, int *__ierr)
{
*__ierr = PCLMVMSetUpdateVec(
	(PC)PetscToPointer((pc) ),
	(Vec)PetscToPointer((X) ));
}
PETSC_EXTERN void  pclmvmsetmatlmvm_(PC pc,Mat B, int *__ierr)
{
*__ierr = PCLMVMSetMatLMVM(
	(PC)PetscToPointer((pc) ),
	(Mat)PetscToPointer((B) ));
}
PETSC_EXTERN void  pclmvmgetmatlmvm_(PC pc,Mat *B, int *__ierr)
{
*__ierr = PCLMVMGetMatLMVM(
	(PC)PetscToPointer((pc) ),B);
}
PETSC_EXTERN void  pclmvmsetis_(PC pc,IS inactive, int *__ierr)
{
*__ierr = PCLMVMSetIS(
	(PC)PetscToPointer((pc) ),
	(IS)PetscToPointer((inactive) ));
}
PETSC_EXTERN void  pclmvmclearis_(PC pc, int *__ierr)
{
*__ierr = PCLMVMClearIS(
	(PC)PetscToPointer((pc) ));
}
#if defined(__cplusplus)
}
#endif
