Actual source code: viewregall.c
petsc-3.13.6 2020-09-29
Report Typos and Errors

      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);
     16: PETSC_EXTERN PetscErrorCode PetscViewerCreate_ADIOS(PetscViewer);
     17: PETSC_EXTERN PetscErrorCode PetscViewerCreate_ADIOS2(PetscViewer);
     18: PETSC_EXTERN PetscErrorCode PetscViewerCreate_ExodusII(PetscViewer);

     20: PetscBool PetscViewerRegisterAllCalled;

     22: /*@C
     23:   PetscViewerRegisterAll - Registers all of the graphics methods in the PetscViewer package.

     25:   Not Collective

     27:    Level: developer

     29: .seealso:  PetscViewerRegisterDestroy()
     30: @*/
     31: PetscErrorCode  PetscViewerRegisterAll(void)
     32: {

     36:   if (PetscViewerRegisterAllCalled) return(0);
     37:   PetscViewerRegisterAllCalled = PETSC_TRUE;

     39:   PetscViewerRegister(PETSCVIEWERASCII,      PetscViewerCreate_ASCII);
     40:   PetscViewerRegister(PETSCVIEWERBINARY,     PetscViewerCreate_Binary);
     41:   PetscViewerRegister(PETSCVIEWERSTRING,     PetscViewerCreate_String);
     42:   PetscViewerRegister(PETSCVIEWERDRAW,       PetscViewerCreate_Draw);
     43: #if defined(PETSC_USE_SOCKET_VIEWER)
     44:   PetscViewerRegister(PETSCVIEWERSOCKET,     PetscViewerCreate_Socket);
     45: #endif
     46: #if defined(PETSC_HAVE_MATHEMATICA)
     47:   PetscViewerRegister(PETSCVIEWERMATHEMATICA,PetscViewerCreate_Mathematica);
     48: #endif
     49:   PetscViewerRegister(PETSCVIEWERVU,         PetscViewerCreate_VU);
     50: #if defined(PETSC_HAVE_HDF5)
     51:   PetscViewerRegister(PETSCVIEWERHDF5,       PetscViewerCreate_HDF5);
     52: #endif
     53: #if defined(PETSC_HAVE_MATLAB_ENGINE)
     54:   PetscViewerRegister(PETSCVIEWERMATLAB,     PetscViewerCreate_Matlab);
     55: #endif
     56: #if defined(PETSC_HAVE_SAWS)
     57:   PetscViewerRegister(PETSCVIEWERSAWS,        PetscViewerCreate_SAWs);
     58: #endif
     59:   PetscViewerRegister(PETSCVIEWERVTK,        PetscViewerCreate_VTK);
     60:   PetscViewerRegister(PETSCVIEWERGLVIS,      PetscViewerCreate_GLVis);
     61: #if defined(PETSC_HAVE_ADIOS)
     62:   PetscViewerRegister(PETSCVIEWERADIOS,      PetscViewerCreate_ADIOS);
     63: #endif
     64: #if defined(PETSC_HAVE_ADIOS2)
     65:   PetscViewerRegister(PETSCVIEWERADIOS2,      PetscViewerCreate_ADIOS2);
     66: #endif
     67: #if defined(PETSC_HAVE_EXODUSII)
     68:   PetscViewerRegister(PETSCVIEWEREXODUSII,    PetscViewerCreate_ExodusII);
     69: #endif
     70:   return(0);
     71: }