15c6c1daeSBarry Smith /* 25c6c1daeSBarry Smith This is the definition of the socket viewer structure. This starts the same as the PetscViewer_Binary() so the 35c6c1daeSBarry Smith binary read/writes can be called directly on it. 45c6c1daeSBarry Smith */ 55c6c1daeSBarry Smith 6*af0996ceSBarry Smith #include <petsc/private/viewerimpl.h> /*I "petscsys.h" I*/ 75c6c1daeSBarry Smith 85c6c1daeSBarry Smith typedef struct { 95c6c1daeSBarry Smith int port; 105c6c1daeSBarry Smith #if defined(PETSC_HAVE_MPIIO) 115c6c1daeSBarry Smith PetscBool MPIIO; 125c6c1daeSBarry Smith #endif 135c6c1daeSBarry Smith } PetscViewer_Socket; 145c6c1daeSBarry Smith 155c6c1daeSBarry Smith #define PETSCSOCKETDEFAULTPORT 5005 165c6c1daeSBarry Smith 175c6c1daeSBarry Smith /* different types of matrix which may be communicated */ 185c6c1daeSBarry Smith #define DENSEREAL 0 195c6c1daeSBarry Smith #define SPARSEREAL 1 205c6c1daeSBarry Smith #define DENSECHARACTER 2 215c6c1daeSBarry Smith #define DENSEINT 3 225c6c1daeSBarry Smith 235c6c1daeSBarry Smith /* Note: DENSEREAL and DENSECHARACTER are stored exactly the same way */ 245c6c1daeSBarry Smith /* DENSECHARACTER simply has a flag set which tells that it should be */ 255c6c1daeSBarry Smith /* interpreted as a string not a numeric vector */ 265c6c1daeSBarry Smith 275c6c1daeSBarry Smith 285c6c1daeSBarry Smith 29