Date: 2015-10-02T21:58:07+00:00

Actual source code: viewerimpl.h
petsc-3.6.2 2015-10-02
Report Typos and Errors

      2: #ifndef _VIEWERIMPL
      3: #define _VIEWERIMPL

      5: #include <petsc/private/petscimpl.h>
      6: #include <petscviewer.h>

      8: PETSC_EXTERN PetscBool      PetscViewerRegisterAllCalled;
      9: PETSC_EXTERN PetscErrorCode PetscViewerRegisterAll(void);

     11: struct _PetscViewerOps {
     12:    PetscErrorCode (*destroy)(PetscViewer);
     13:    PetscErrorCode (*view)(PetscViewer,PetscViewer);
     14:    PetscErrorCode (*flush)(PetscViewer);
     15:    PetscErrorCode (*getsingleton)(PetscViewer,PetscViewer*);
     16:    PetscErrorCode (*restoresingleton)(PetscViewer,PetscViewer*);
     17:    PetscErrorCode (*getsubcomm)(PetscViewer,MPI_Comm,PetscViewer*);
     18:    PetscErrorCode (*restoresubcomm)(PetscViewer,MPI_Comm,PetscViewer*);
     19:    PetscErrorCode (*read)(PetscViewer,void*,PetscInt,PetscInt*,PetscDataType);
     20:    PetscErrorCode (*setfromoptions)(PetscOptions*,PetscViewer);
     21:    PetscErrorCode (*setup)(PetscViewer);
     22: };

     24: /*
     25:    Defines the viewer data structure.
     26: */
     27: struct _p_PetscViewer {
     28:   PETSCHEADER(struct _PetscViewerOps);
     29:   PetscViewerFormat format,formats[10];
     30:   int               iformat;   /* number of formats that have been pushed on formats[] stack */
     31:   void              *data;
     32:   PetscBool         setupcalled;
     33: };

     37: #endif