xref: /petsc/include/petscviewer.h (revision 08480c60afa5ef1d2e4e27b9ebdf48b02c6a2186)
1*08480c60SBarry Smith /* $Id: viewer.h,v 1.16 1995/09/21 20:13:13 bsmith Exp bsmith $ */
22eb8c8abSBarry Smith 
32eb8c8abSBarry Smith #if !defined(__VIEWER_PACKAGE)
42eb8c8abSBarry Smith #define __VIEWER_PACKAGE
52eb8c8abSBarry Smith 
62eb8c8abSBarry Smith #include "petsc.h"
72eb8c8abSBarry Smith 
82eb8c8abSBarry Smith typedef struct _Viewer*            Viewer;
92eb8c8abSBarry Smith #define VIEWER_COOKIE              PETSC_COOKIE+1
102eb8c8abSBarry Smith #define MATLAB_VIEWER              0
119b94acceSBarry Smith #define ASCII_FILE_VIEWER          1
129b94acceSBarry Smith #define ASCII_FILES_VIEWER         2
139b94acceSBarry Smith #define BINARY_FILE_VIEWER         3
142eb8c8abSBarry Smith 
154a0ce102SLois Curfman McInnes #define FILE_FORMAT_DEFAULT       0
164a0ce102SLois Curfman McInnes #define FILE_FORMAT_MATLAB        1
174a0ce102SLois Curfman McInnes #define FILE_FORMAT_IMPL          2
1880b4ade8SLois Curfman McInnes #define FILE_FORMAT_INFO          3
19*08480c60SBarry Smith #define FILE_FORMAT_INFO_DETAILED 4
204a0ce102SLois Curfman McInnes 
210e6118f3SLois Curfman McInnes /* file types */
229b94acceSBarry Smith typedef enum { BINARY_RDONLY, BINARY_WRONLY, BINARY_CREATE} ViewerBinaryType;
230e6118f3SLois Curfman McInnes 
24dbb450caSBarry Smith extern int ViewerFileOpenASCII(MPI_Comm,char*,Viewer *);
2521b0d8fbSLois Curfman McInnes extern int ViewerFileOpenBinary(MPI_Comm,char*,ViewerBinaryType,Viewer *);
264a0ce102SLois Curfman McInnes extern int ViewerFileSetFormat(Viewer,int,char *);
272eb8c8abSBarry Smith extern int ViewerMatlabOpen(char*,int,Viewer *);
289651b370SBarry Smith extern int ViewerDestroy(Viewer);
29ae39576cSLois Curfman McInnes 
3021b0d8fbSLois Curfman McInnes extern Viewer STDOUT_VIEWER_SELF;
3121b0d8fbSLois Curfman McInnes extern Viewer STDERR_VIEWER_SELF;
320e6118f3SLois Curfman McInnes extern Viewer STDOUT_VIEWER_WORLD;
332eb8c8abSBarry Smith 
342eb8c8abSBarry Smith #endif
35