Actual source code: vecregall.c

petsc-3.5.2 2014-09-08
Report Typos and Errors
  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 defined(PETSC_HAVE_VIENNACL)
 13: PETSC_EXTERN PetscErrorCode VecCreate_SeqViennaCL(Vec);
 14: PETSC_EXTERN PetscErrorCode VecCreate_MPIViennaCL(Vec);
 15: PETSC_EXTERN PetscErrorCode VecCreate_ViennaCL(Vec);
 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 defined PETSC_HAVE_VIENNACL
 47:   VecRegister(VECSEQVIENNACL,    VecCreate_SeqViennaCL);
 48:   VecRegister(VECMPIVIENNACL,    VecCreate_MPIViennaCL);
 49:   VecRegister(VECVIENNACL,       VecCreate_ViennaCL);
 50: #endif
 51:   return(0);
 52: }