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