xref: /petsc/src/sys/classes/viewer/impls/socket/socket.h (revision 5c6c1daec53e1d9ab0bec9db5309fd8fc7645b8d)
1*5c6c1daeSBarry Smith /*
2*5c6c1daeSBarry Smith      This is the definition of the socket viewer structure. This starts the same as the PetscViewer_Binary() so the
3*5c6c1daeSBarry Smith    binary read/writes can be called directly on it.
4*5c6c1daeSBarry Smith */
5*5c6c1daeSBarry Smith 
6*5c6c1daeSBarry Smith #include <petsc-private/viewerimpl.h>   /*I  "petscsys.h"  I*/
7*5c6c1daeSBarry Smith 
8*5c6c1daeSBarry Smith typedef struct {
9*5c6c1daeSBarry Smith   int           port;
10*5c6c1daeSBarry Smith #if defined(PETSC_HAVE_MPIIO)
11*5c6c1daeSBarry Smith   PetscBool     MPIIO;
12*5c6c1daeSBarry Smith #endif
13*5c6c1daeSBarry Smith } PetscViewer_Socket;
14*5c6c1daeSBarry Smith 
15*5c6c1daeSBarry Smith #define PETSCSOCKETDEFAULTPORT    5005
16*5c6c1daeSBarry Smith 
17*5c6c1daeSBarry Smith /* different types of matrix which may be communicated */
18*5c6c1daeSBarry Smith #define DENSEREAL      0
19*5c6c1daeSBarry Smith #define SPARSEREAL     1
20*5c6c1daeSBarry Smith #define DENSECHARACTER 2
21*5c6c1daeSBarry Smith #define DENSEINT       3
22*5c6c1daeSBarry Smith 
23*5c6c1daeSBarry Smith /* Note: DENSEREAL and DENSECHARACTER are stored exactly the same way */
24*5c6c1daeSBarry Smith /* DENSECHARACTER simply has a flag set which tells that it should be */
25*5c6c1daeSBarry Smith /* interpreted as a string not a numeric vector                       */
26*5c6c1daeSBarry Smith 
27*5c6c1daeSBarry Smith 
28*5c6c1daeSBarry Smith 
29