1 #include <petsc-private/fortranimpl.h> 2 #include <petscviewer.h> 3 4 #if defined(PETSC_HAVE_FORTRAN_CAPS) 5 #define petscviewerstringopen_ PETSCVIEWERSTRINGOPEN 6 #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 7 #define petscviewerstringopen_ petscviewerstringopen 8 #endif 9 10 EXTERN_C_BEGIN 11 void PETSC_STDCALL petscviewerstringopen_(MPI_Comm *comm,CHAR name PETSC_MIXED_LEN(len1),PetscInt *len,PetscViewer *str, 12 PetscErrorCode *ierr PETSC_END_LEN(len1)) 13 { 14 *ierr = PetscViewerStringOpen(MPI_Comm_f2c(*(MPI_Fint*)&*comm),name,*len,str); 15 } 16 17 EXTERN_C_END 18