Actual source code: viewregall.c
petsc-3.8.4 2018-03-24
2: #include <petsc/private/viewerimpl.h>
4: PETSC_EXTERN PetscErrorCode PetscViewerCreate_Socket(PetscViewer);
5: PETSC_EXTERN PetscErrorCode PetscViewerCreate_ASCII(PetscViewer);
6: PETSC_EXTERN PetscErrorCode PetscViewerCreate_Binary(PetscViewer);
7: PETSC_EXTERN PetscErrorCode PetscViewerCreate_String(PetscViewer);
8: PETSC_EXTERN PetscErrorCode PetscViewerCreate_Draw(PetscViewer);
9: PETSC_EXTERN PetscErrorCode PetscViewerCreate_VU(PetscViewer);
10: PETSC_EXTERN PetscErrorCode PetscViewerCreate_Mathematica(PetscViewer);
11: PETSC_EXTERN PetscErrorCode PetscViewerCreate_HDF5(PetscViewer);
12: PETSC_EXTERN PetscErrorCode PetscViewerCreate_Matlab(PetscViewer);
13: PETSC_EXTERN PetscErrorCode PetscViewerCreate_SAWs(PetscViewer);
14: PETSC_EXTERN PetscErrorCode PetscViewerCreate_VTK(PetscViewer);
15: PETSC_EXTERN PetscErrorCode PetscViewerCreate_GLVis(PetscViewer);
17: PetscBool PetscViewerRegisterAllCalled;
19: /*@C
20: PetscViewerRegisterAll - Registers all of the graphics methods in the PetscViewer package.
22: Not Collective
24: Level: developer
26: .seealso: PetscViewerRegisterDestroy()
27: @*/
28: PetscErrorCode PetscViewerRegisterAll(void)
29: {
33: if (PetscViewerRegisterAllCalled) return(0);
34: PetscViewerRegisterAllCalled = PETSC_TRUE;
36: PetscViewerRegister(PETSCVIEWERASCII, PetscViewerCreate_ASCII);
37: PetscViewerRegister(PETSCVIEWERBINARY, PetscViewerCreate_Binary);
38: PetscViewerRegister(PETSCVIEWERSTRING, PetscViewerCreate_String);
39: PetscViewerRegister(PETSCVIEWERDRAW, PetscViewerCreate_Draw);
40: #if defined(PETSC_USE_SOCKET_VIEWER)
41: PetscViewerRegister(PETSCVIEWERSOCKET, PetscViewerCreate_Socket);
42: #endif
43: #if defined(PETSC_HAVE_MATHEMATICA)
44: PetscViewerRegister(PETSCVIEWERMATHEMATICA,PetscViewerCreate_Mathematica);
45: #endif
46: PetscViewerRegister(PETSCVIEWERVU, PetscViewerCreate_VU);
47: #if defined(PETSC_HAVE_HDF5)
48: PetscViewerRegister(PETSCVIEWERHDF5, PetscViewerCreate_HDF5);
49: #endif
50: #if defined(PETSC_HAVE_MATLAB_ENGINE)
51: PetscViewerRegister(PETSCVIEWERMATLAB, PetscViewerCreate_Matlab);
52: #endif
53: #if defined(PETSC_HAVE_SAWS)
54: PetscViewerRegister(PETSCVIEWERSAWS, PetscViewerCreate_SAWs);
55: #endif
56: PetscViewerRegister(PETSCVIEWERVTK, PetscViewerCreate_VTK);
57: PetscViewerRegister(PETSCVIEWERGLVIS, PetscViewerCreate_GLVis);
58: return(0);
59: }