Date: 2013-07-02T14:39:53+00:00

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

      2: #include <petscvec.h>
      3: PETSC_EXTERN PetscErrorCode VecCreate_Seq(Vec);
      4: PETSC_EXTERN PetscErrorCode VecCreate_MPI(Vec);
      5: PETSC_EXTERN PetscErrorCode VecCreate_Standard(Vec);
      6: PETSC_EXTERN PetscErrorCode VecCreate_Shared(Vec);
      7: #if defined(PETSC_HAVE_CUSP)
      8: PETSC_EXTERN PetscErrorCode VecCreate_SeqCUSP(Vec);
      9: PETSC_EXTERN PetscErrorCode VecCreate_MPICUSP(Vec);
     10: PETSC_EXTERN PetscErrorCode VecCreate_CUSP(Vec);
     11: #endif
     12: #if 0
     13: #if defined(PETSC_HAVE_SIEVE)
     14: PETSC_EXTERN PetscErrorCode VecCreate_Sieve(Vec);
     15: #endif
     16: #endif

     20: /*@C
     21:   VecRegisterAll - Registers all of the vector components in the Vec package.

     23:   Not Collective

     25:   Level: advanced

     27: .keywords: Vec, register, all
     28: .seealso:  VecRegister(), VecRegisterDestroy(), VecRegister()
     29: @*/
     30: PetscErrorCode  VecRegisterAll(void)
     31: {

     35:   VecRegisterAllCalled = PETSC_TRUE;

     37:   VecRegister(VECSEQ,        VecCreate_Seq);
     38:   VecRegister(VECMPI,        VecCreate_MPI);
     39:   VecRegister(VECSTANDARD,   VecCreate_Standard);
     40:   VecRegister(VECSHARED,     VecCreate_Shared);
     41: #if defined PETSC_HAVE_CUSP
     42:   VecRegister(VECSEQCUSP,    VecCreate_SeqCUSP);
     43:   VecRegister(VECMPICUSP,    VecCreate_MPICUSP);
     44:   VecRegister(VECCUSP,       VecCreate_CUSP);
     45: #endif
     46: #if 0
     47: #if defined(PETSC_HAVE_SIEVE)
     48:   VecRegister(VECSIEVE,      VecCreate_Sieve);
     49: #endif
     50: #endif
     51:   return(0);
     52: }