xref: /petsc/include/petscviewer.h (revision 4a0ce1022b72e4f6d4316c6a4e26837fdc335099)
12eb8c8abSBarry Smith 
22eb8c8abSBarry Smith #if !defined(__VIEWER_PACKAGE)
32eb8c8abSBarry Smith #define __VIEWER_PACKAGE
42eb8c8abSBarry Smith 
52eb8c8abSBarry Smith #include "petsc.h"
62eb8c8abSBarry Smith 
72eb8c8abSBarry Smith typedef struct _Viewer*      Viewer;
82eb8c8abSBarry Smith #define VIEWER_COOKIE        PETSC_COOKIE+1
92eb8c8abSBarry Smith #define MATLAB_VIEWER        0
102eb8c8abSBarry Smith #define FILE_VIEWER          1
112eb8c8abSBarry Smith #define FILES_VIEWER         2
122eb8c8abSBarry Smith 
13*4a0ce102SLois Curfman McInnes #define FILE_FORMAT_DEFAULT  0
14*4a0ce102SLois Curfman McInnes #define FILE_FORMAT_MATLAB   1
15*4a0ce102SLois Curfman McInnes #define FILE_FORMAT_IMPL     2
16*4a0ce102SLois Curfman McInnes 
172eb8c8abSBarry Smith extern int ViewerFileOpen(char*,Viewer *);
18*4a0ce102SLois Curfman McInnes extern int ViewerFileOpenSync(char*,MPI_Comm,Viewer *);
19*4a0ce102SLois Curfman McInnes extern int ViewerFileSetFormat(Viewer,int,char *);
202eb8c8abSBarry Smith extern int ViewerMatlabOpen(char*,int,Viewer *);
21*4a0ce102SLois Curfman McInnes extern FILE *ViewerFileGetPointer_Private(Viewer);
222eb8c8abSBarry Smith 
232eb8c8abSBarry Smith extern Viewer STDOUT_VIEWER;
242eb8c8abSBarry Smith extern Viewer STDERR_VIEWER;
252eb8c8abSBarry Smith extern Viewer SYNC_STDOUT_VIEWER;
262eb8c8abSBarry Smith 
272eb8c8abSBarry Smith extern int ViewerMatlabPutArray(Viewer,int,int,Scalar*);
282eb8c8abSBarry Smith extern int ViewMatlabPutSparse(Viewer,int,int,int,Scalar*,int*,int *);
292eb8c8abSBarry Smith 
302eb8c8abSBarry Smith extern int PetscView(PetscObject,Viewer);
312eb8c8abSBarry Smith extern int ViewerInitialize();
322eb8c8abSBarry Smith 
332eb8c8abSBarry Smith #endif
34