Actual source code: viewregall.c

      1: #define PETSC_DLL

      3: #include "src/sys/src/viewer/viewerimpl.h"  /*I "petsc.h" I*/

      6: EXTERN PetscErrorCode PetscViewerCreate_Socket(PetscViewer);
      7: EXTERN PetscErrorCode PetscViewerCreate_ASCII(PetscViewer);
      8: EXTERN PetscErrorCode PetscViewerCreate_Binary(PetscViewer);
      9: EXTERN PetscErrorCode PetscViewerCreate_String(PetscViewer);
     10: EXTERN PetscErrorCode PetscViewerCreate_Draw(PetscViewer);
     11: EXTERN PetscErrorCode PetscViewerCreate_VU(PetscViewer);
     12: EXTERN PetscErrorCode PetscViewerCreate_Mathematica(PetscViewer);
     13: EXTERN PetscErrorCode PetscViewerCreate_Netcdf(PetscViewer);
     14: EXTERN PetscErrorCode PetscViewerCreate_HDF4(PetscViewer);
     15: EXTERN PetscErrorCode PetscViewerCreate_Matlab(PetscViewer);
     17:
     20: /*@C
     21:   PetscViewerRegisterAll - Registers all of the graphics methods in the PetscViewer package.

     23:   Not Collective

     25:    Level: developer

     27: .seealso:  PetscViewerRegisterDestroy()
     28: @*/
     29: PetscErrorCode PETSC_DLLEXPORT PetscViewerRegisterAll(const char *path)
     30: {

     34:   PetscViewerRegisterDynamic(PETSC_VIEWER_ASCII,      path,"PetscViewerCreate_ASCII",      PetscViewerCreate_ASCII);
     35:   PetscViewerRegisterDynamic(PETSC_VIEWER_BINARY,     path,"PetscViewerCreate_Binary",     PetscViewerCreate_Binary);
     36:   PetscViewerRegisterDynamic(PETSC_VIEWER_STRING,     path,"PetscViewerCreate_String",     PetscViewerCreate_String);
     37:   PetscViewerRegisterDynamic(PETSC_VIEWER_DRAW,       path,"PetscViewerCreate_Draw",       PetscViewerCreate_Draw);
     38: #if defined(PETSC_USE_SOCKET_VIEWER)
     39:   PetscViewerRegisterDynamic(PETSC_VIEWER_SOCKET,     path,"PetscViewerCreate_Socket",     PetscViewerCreate_Socket);
     40: #endif
     41: #if defined(PETSC_HAVE_MATHEMATICA)
     42:   PetscViewerRegisterDynamic(PETSC_VIEWER_MATHEMATICA,path,"PetscViewerCreate_Mathematica",PetscViewerCreate_Mathematica);
     43: #endif
     44:   PetscViewerRegisterDynamic(PETSC_VIEWER_VU,         path,"PetscViewerCreate_VU",         PetscViewerCreate_VU);
     45: #if defined(PETSC_HAVE_PNETCDF)
     46:   PetscViewerRegisterDynamic(PETSC_VIEWER_NETCDF,     path,"PetscViewerCreate_Netcdf",     PetscViewerCreate_Netcdf);
     47: #endif
     48: #if defined(PETSC_HAVE_HDF4)
     49:   PetscViewerRegisterDynamic(PETSC_VIEWER_HDF4,       path,"PetscViewerCreate_HDF4",       PetscViewerCreate_HDF4);
     50: #endif
     51: #if defined(PETSC_HAVE_MATLAB)
     52:   PetscViewerRegisterDynamic(PETSC_VIEWER_MATLAB,     path,"PetscViewerCreate_Matlab",     PetscViewerCreate_Matlab);
     53: #endif
     54:   return(0);
     55: }