1: #include <petsc/private/fortranimpl.h>
2: #include <petscviewer.h>
4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
5: #define petscviewerstringopen_ PETSCVIEWERSTRINGOPEN
6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
7: #define petscviewerstringopen_ petscviewerstringopen
8: #endif
10: PETSC_EXTERN void petscviewerstringopen_(MPI_Comm *comm, char *name, PetscInt *len, PetscViewer *str, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len1)
11: {
12: *ierr = PetscViewerStringOpen(MPI_Comm_f2c(*(MPI_Fint *)&*comm), name, *len, str);
13: }