1af0996ceSBarry Smith #include <petsc/private/fortranimpl.h> 25c6c1daeSBarry Smith #include <petscdraw.h> 3665c2dedSJed Brown #include <petscviewer.h> 45c6c1daeSBarry Smith 55c6c1daeSBarry Smith #if defined(PETSC_HAVE_FORTRAN_CAPS) 634e9cff2SSatish Balay #define petsc_viewer_draw__ PETSC_VIEWER_DRAW_BROKEN 7*ce78bad3SBarry Smith #define petscviewermonitorlgsetup_ PETSCVIEWERMONITORLGSETUP 85c6c1daeSBarry Smith #elif !defined(PETSC_HAVE_FORTRAN_UNDERSCORE) 934e9cff2SSatish Balay #define petsc_viewer_draw__ petsc_viewer_draw_ 10*ce78bad3SBarry Smith #define petscviewermonitorlgsetup_ petscviewermonitorlgsetup 115c6c1daeSBarry Smith #endif 125c6c1daeSBarry Smith 1334e9cff2SSatish Balay #if defined(PETSC_HAVE_FORTRAN_UNDERSCORE_UNDERSCORE) 1434e9cff2SSatish Balay #define petsc_viewer_draw__ petsc_viewer_draw___ 1534e9cff2SSatish Balay #endif 1634e9cff2SSatish Balay 1719caf8f3SSatish Balay PETSC_EXTERN PetscViewer petsc_viewer_draw__(MPI_Comm *comm) 1834e9cff2SSatish Balay { 1934e9cff2SSatish Balay return PETSC_VIEWER_DRAW_(MPI_Comm_f2c(*(MPI_Fint *)&*comm)); 2034e9cff2SSatish Balay } 21*ce78bad3SBarry Smith 22*ce78bad3SBarry Smith PETSC_EXTERN void petscviewermonitorlgsetup_(PetscViewer *v, char *host, char *label, char *metric, int l, const char **names, int *x, int *y, int *m, int *n, PetscErrorCode *ierr, PETSC_FORTRAN_CHARLEN_T len1, PETSC_FORTRAN_CHARLEN_T len2, PETSC_FORTRAN_CHARLEN_T len3) 23*ce78bad3SBarry Smith { 24*ce78bad3SBarry Smith char *t1, *t2, *t3; 25*ce78bad3SBarry Smith 26*ce78bad3SBarry Smith FIXCHAR(host, len1, t1); 27*ce78bad3SBarry Smith FIXCHAR(label, len2, t2); 28*ce78bad3SBarry Smith FIXCHAR(metric, len3, t3); 29*ce78bad3SBarry Smith *ierr = PetscViewerMonitorLGSetUp(*v, t1, t2, t3, l, names, *x, *y, *m, *n); 30*ce78bad3SBarry Smith } 31