#include "petscsys.h"
#include "petscfix.h"
#include "petsc/private/fortranimpl.h"
/* lrc.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 "petscmat.h"
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define matlrcgetmats_ MATLRCGETMATS
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define matlrcgetmats_ matlrcgetmats
#endif
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define matlrcsetmats_ MATLRCSETMATS
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define matlrcsetmats_ matlrcsetmats
#endif
#ifdef PETSC_HAVE_FORTRAN_CAPS
#define matcreatelrc_ MATCREATELRC
#elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) && !defined(FORTRANDOUBLEUNDERSCORE)
#define matcreatelrc_ matcreatelrc
#endif


/* Definitions of Fortran Wrapper routines */
#if defined(__cplusplus)
extern "C" {
#endif
PETSC_EXTERN void  matlrcgetmats_(Mat N,Mat *A,Mat *U,Vec *c,Mat *V, int *__ierr)
{
*__ierr = MatLRCGetMats(
	(Mat)PetscToPointer((N) ),A,U,c,V);
}
PETSC_EXTERN void  matlrcsetmats_(Mat N,Mat A,Mat U,Vec c,Mat V, int *__ierr)
{
*__ierr = MatLRCSetMats(
	(Mat)PetscToPointer((N) ),
	(Mat)PetscToPointer((A) ),
	(Mat)PetscToPointer((U) ),
	(Vec)PetscToPointer((c) ),
	(Mat)PetscToPointer((V) ));
}
PETSC_EXTERN void  matcreatelrc_(Mat A,Mat U,Vec c,Mat V,Mat *N, int *__ierr)
{
*__ierr = MatCreateLRC(
	(Mat)PetscToPointer((A) ),
	(Mat)PetscToPointer((U) ),
	(Vec)PetscToPointer((c) ),
	(Mat)PetscToPointer((V) ),N);
}
#if defined(__cplusplus)
}
#endif
