/usr/lib/petscdir/3.7.7/x86_64-linux-gnu-real-debug/include/petsc/private/viewerimpl.h is in libpetsc3.7.7-dbg 3.7.7+dfsg1-2build5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #ifndef _VIEWERIMPL
#define _VIEWERIMPL
#include <petsc/private/petscimpl.h>
#include <petscviewer.h>
PETSC_EXTERN PetscBool PetscViewerRegisterAllCalled;
PETSC_EXTERN PetscErrorCode PetscViewerRegisterAll(void);
struct _PetscViewerOps {
PetscErrorCode (*destroy)(PetscViewer);
PetscErrorCode (*view)(PetscViewer,PetscViewer);
PetscErrorCode (*flush)(PetscViewer);
PetscErrorCode (*getsubviewer)(PetscViewer,MPI_Comm,PetscViewer*);
PetscErrorCode (*restoresubviewer)(PetscViewer,MPI_Comm,PetscViewer*);
PetscErrorCode (*read)(PetscViewer,void*,PetscInt,PetscInt*,PetscDataType);
PetscErrorCode (*setfromoptions)(PetscOptionItems*,PetscViewer);
PetscErrorCode (*setup)(PetscViewer);
};
#define PETSCVIEWERFORMATPUSHESMAX 25
/*
Defines the viewer data structure.
*/
struct _p_PetscViewer {
PETSCHEADER(struct _PetscViewerOps);
PetscViewerFormat format,formats[PETSCVIEWERFORMATPUSHESMAX];
int iformat; /* number of formats that have been pushed on formats[] stack */
void *data;
PetscBool setupcalled;
};
#endif
|