1*9651b370SBarry Smith /* $Id: viewer.h,v 1.9 1995/06/13 16:16:21 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 112eb8c8abSBarry Smith #define FILE_VIEWER 1 122eb8c8abSBarry Smith #define FILES_VIEWER 2 132eb8c8abSBarry Smith 144a0ce102SLois Curfman McInnes #define FILE_FORMAT_DEFAULT 0 154a0ce102SLois Curfman McInnes #define FILE_FORMAT_MATLAB 1 164a0ce102SLois Curfman McInnes #define FILE_FORMAT_IMPL 2 174a0ce102SLois Curfman McInnes 182eb8c8abSBarry Smith extern int ViewerFileOpen(char*,Viewer *); 194a0ce102SLois Curfman McInnes extern int ViewerFileOpenSync(char*,MPI_Comm,Viewer *); 204a0ce102SLois Curfman McInnes extern int ViewerFileSetFormat(Viewer,int,char *); 212eb8c8abSBarry Smith extern int ViewerMatlabOpen(char*,int,Viewer *); 22*9651b370SBarry Smith extern int ViewerDestroy(Viewer); 23ae39576cSLois Curfman McInnes 242eb8c8abSBarry Smith extern Viewer STDOUT_VIEWER; 252eb8c8abSBarry Smith extern Viewer STDERR_VIEWER; 262eb8c8abSBarry Smith extern Viewer SYNC_STDOUT_VIEWER; 272eb8c8abSBarry Smith 282eb8c8abSBarry Smith #endif 29