Actual source code: viewregall.c
petsc-3.6.1 2015-08-06
2: #include <petsc/private/viewerimpl.h> /*I "petscsys.h" I*/
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_Netcdf(PetscViewer);
12: PETSC_EXTERN PetscErrorCode PetscViewerCreate_HDF5(PetscViewer);
13: PETSC_EXTERN PetscErrorCode PetscViewerCreate_Matlab(PetscViewer);
14: PETSC_EXTERN PetscErrorCode PetscViewerCreate_SAWs(PetscViewer);
15: PETSC_EXTERN PetscErrorCode PetscViewerCreate_VTK(PetscViewer);
17: PetscBool PetscViewerRegisterAllCalled;
21: /*@C
22: PetscViewerRegisterAll - Registers all of the graphics methods in the PetscViewer package.
24: Not Collective
26: Level: developer
28: .seealso: PetscViewerRegisterDestroy()
29: @*/
30: PetscErrorCode PetscViewerRegisterAll(void)
31: {
35: if (PetscViewerRegisterAllCalled) return(0);
36: PetscViewerRegisterAllCalled = PETSC_TRUE;
38: PetscViewerRegister(PETSCVIEWERASCII, PetscViewerCreate_ASCII);
39: PetscViewerRegister(PETSCVIEWERBINARY, PetscViewerCreate_Binary);
40: PetscViewerRegister(PETSCVIEWERSTRING, PetscViewerCreate_String);
41: PetscViewerRegister(PETSCVIEWERDRAW, PetscViewerCreate_Draw);
42: #if defined(PETSC_USE_SOCKET_VIEWER)
43: PetscViewerRegister(PETSCVIEWERSOCKET, PetscViewerCreate_Socket);
44: #endif
45: #if defined(PETSC_HAVE_MATHEMATICA)
46: PetscViewerRegister(PETSCVIEWERMATHEMATICA,PetscViewerCreate_Mathematica);
47: #endif
48: PetscViewerRegister(PETSCVIEWERVU, PetscViewerCreate_VU);
49: #if defined(PETSC_HAVE_HDF5)
50: PetscViewerRegister(PETSCVIEWERHDF5, PetscViewerCreate_HDF5);
51: #endif
52: #if defined(PETSC_HAVE_MATLAB_ENGINE)
53: PetscViewerRegister(PETSCVIEWERMATLAB, PetscViewerCreate_Matlab);
54: #endif
55: #if defined(PETSC_HAVE_SAWS)
56: PetscViewerRegister(PETSCVIEWERSAWS, PetscViewerCreate_SAWs);
57: #endif
58: PetscViewerRegister(PETSCVIEWERVTK, PetscViewerCreate_VTK);
59: return(0);
60: }