Date: 2013-07-02T14:38:13+00:00

Actual source code: viewregall.c
petsc-3.4.2 2013-07-02

      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_AMS(PetscViewer);
     15: PETSC_EXTERN PetscErrorCode PetscViewerCreate_VTK(PetscViewer);

     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:   PetscViewerRegister(PETSCVIEWERASCII,      PetscViewerCreate_ASCII);
     34:   PetscViewerRegister(PETSCVIEWERBINARY,     PetscViewerCreate_Binary);
     35:   PetscViewerRegister(PETSCVIEWERSTRING,     PetscViewerCreate_String);
     36:   PetscViewerRegister(PETSCVIEWERDRAW,       PetscViewerCreate_Draw);
     37: #if defined(PETSC_USE_SOCKET_VIEWER)
     38:   PetscViewerRegister(PETSCVIEWERSOCKET,     PetscViewerCreate_Socket);
     39: #endif
     40: #if defined(PETSC_HAVE_MATHEMATICA)
     41:   PetscViewerRegister(PETSCVIEWERMATHEMATICA,PetscViewerCreate_Mathematica);
     42: #endif
     43:   PetscViewerRegister(PETSCVIEWERVU,         PetscViewerCreate_VU);
     44: #if defined(PETSC_HAVE_HDF5)
     45:   PetscViewerRegister(PETSCVIEWERHDF5,       PetscViewerCreate_HDF5);
     46: #endif
     47: #if defined(PETSC_HAVE_MATLAB_ENGINE)
     48:   PetscViewerRegister(PETSCVIEWERMATLAB,     PetscViewerCreate_Matlab);
     49: #endif
     50: #if defined(PETSC_HAVE_AMS)
     51:   PetscViewerRegister(PETSCVIEWERAMS,        PetscViewerCreate_AMS);
     52: #endif
     53:   PetscViewerRegister(PETSCVIEWERVTK,        PetscViewerCreate_VTK);
     54:   return(0);
     55: }