1: #include <petsc/private/fortranimpl.h> 2: #include <petsc/private/matimpl.h> 4: #if defined(PETSC_HAVE_FORTRAN_CAPS) 5: #define matcoarsenviewfromoptions_ MATCOARSENVIEWFROMOPTIONS 6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7: #define matcoarsenviewfromoptions_ matcoarsenviewfromoptions 8: #endif 10: PETSC_EXTERN void matcoarsenviewfromoptions_(MatCoarsen *a, PetscObject obj, char *type, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len) 11: { 12: char *t; 14: FIXCHAR(type, len, t); 15: CHKFORTRANNULLOBJECT(obj); 16: *ierr = MatCoarsenViewFromOptions(*a, obj, t); 17: if (*ierr) return; 18: FREECHAR(type, t); 19: }