Actual source code: vecregall.c

  1: #define PETSCVEC_DLL

 3:  #include vecimpl.h
  5: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT VecCreate_Seq(Vec);
  6: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT VecCreate_MPI(Vec);
  7: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT VecCreate_Shared(Vec);
  8: EXTERN PetscErrorCode PETSCVEC_DLLEXPORT VecCreate_FETI(Vec);

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

 16:   Not Collective

 18:   Input parameter:
 19: . path - The dynamic library path

 21:   Level: advanced

 23: .keywords: Vec, register, all
 24: .seealso:  VecRegister(), VecRegisterDestroy(), VecRegisterDynamic()
 25: @*/
 26: PetscErrorCode PETSCVEC_DLLEXPORT VecRegisterAll(const char path[])
 27: {

 31:   VecRegisterAllCalled = PETSC_TRUE;

 33:   VecRegisterDynamic(VECSEQ,      path, "VecCreate_Seq",      VecCreate_Seq);
 34:   VecRegisterDynamic(VECMPI,      path, "VecCreate_MPI",      VecCreate_MPI);
 35:   VecRegisterDynamic(VECSHARED,   path, "VecCreate_Shared",   VecCreate_Shared);
 36:   VecRegisterDynamic(VECFETI,     path, "VecCreate_FETI",     VecCreate_FETI);
 37:   return(0);
 38: }