Actual source code: zvtkvf.c

  1: #include <petsc/private/fortranimpl.h>
  2: #include <petscviewer.h>

  4: #if defined(PETSC_HAVE_FORTRAN_CAPS)
  5:   #define petscviewervtkopen_ PETSCVIEWERVTKOPEN
  6: #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE)
  7:   #define petscviewervtkopen_ petscviewervtkopen
  8: #endif

 10: PETSC_EXTERN void petscviewervtkopen_(MPI_Comm *comm, char *name, PetscFileMode *type, PetscViewer *binv, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len)
 11: {
 12:   char *c1;
 13:   FIXCHAR(name, len, c1);
 14:   *ierr = PetscViewerVTKOpen(MPI_Comm_f2c(*(MPI_Fint *)&*comm), c1, *type, binv);
 15:   if (*ierr) return;
 16:   FREECHAR(name, c1);
 17: }