1*2eb8c8abSBarry Smith 2*2eb8c8abSBarry Smith #if !defined(__VIEWER_PACKAGE) 3*2eb8c8abSBarry Smith #define __VIEWER_PACKAGE 4*2eb8c8abSBarry Smith 5*2eb8c8abSBarry Smith #include "petsc.h" 6*2eb8c8abSBarry Smith 7*2eb8c8abSBarry Smith typedef struct _Viewer* Viewer; 8*2eb8c8abSBarry Smith #define VIEWER_COOKIE PETSC_COOKIE+1 9*2eb8c8abSBarry Smith #define MATLAB_VIEWER 0 10*2eb8c8abSBarry Smith #define FILE_VIEWER 1 11*2eb8c8abSBarry Smith #define FILES_VIEWER 2 12*2eb8c8abSBarry Smith 13*2eb8c8abSBarry Smith extern int ViewerFileOpen(char*,Viewer *); 14*2eb8c8abSBarry Smith extern int ViewerSyncFileOpen(char*,MPI_Comm,Viewer *); 15*2eb8c8abSBarry Smith extern int ViewerMatlabOpen(char*,int,Viewer *); 16*2eb8c8abSBarry Smith extern FILE *ViewerFileGetPointer(Viewer); 17*2eb8c8abSBarry Smith 18*2eb8c8abSBarry Smith extern Viewer STDOUT_VIEWER; 19*2eb8c8abSBarry Smith extern Viewer STDERR_VIEWER; 20*2eb8c8abSBarry Smith extern Viewer SYNC_STDOUT_VIEWER; 21*2eb8c8abSBarry Smith 22*2eb8c8abSBarry Smith extern int ViewerMatlabPutArray(Viewer,int,int,Scalar*); 23*2eb8c8abSBarry Smith extern int ViewMatlabPutSparse(Viewer,int,int,int,Scalar*,int*,int *); 24*2eb8c8abSBarry Smith 25*2eb8c8abSBarry Smith extern int PetscView(PetscObject,Viewer); 26*2eb8c8abSBarry Smith extern int ViewerInitialize(); 27*2eb8c8abSBarry Smith 28*2eb8c8abSBarry Smith #endif 29