Actual source code: vecregall.c

  1: #ifdef PETSC_RCS_HEADER
  2: static char vcid[] = "$Id: vecregall.c,v 1.5 1999/06/07 17:17:56 knepley Exp $";
  3: #endif

 5:  #include vecimpl.h
  6: EXTERN_C_BEGIN
  7: extern int VecCreate_Seq(Vec);
  8: extern int VecCreate_MPI(Vec);
  9: extern int VecCreate_Shared(Vec);
 10: extern int VecCreate_FETI(Vec);
 11: extern int VecCreate_ESI(Vec);
 12: extern int VecCreate_PetscESI(Vec);

 14: EXTERN_C_END

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

 21:   Not Collective

 23:   Input parameter:
 24: . path - The dynamic library path

 26:   Level: advanced

 28: .keywords: Vec, register, all
 29: .seealso:  VecRegister(), VecRegisterDestroy(), VecRegisterDynamic()
 30: @*/
 31: int VecRegisterAll(const char path[])
 32: {

 36:   VecRegisterAllCalled = PETSC_TRUE;

 38:   VecRegisterDynamic(VECSEQ,      path, "VecCreate_Seq",      VecCreate_Seq);
 39:   VecRegisterDynamic(VECMPI,      path, "VecCreate_MPI",      VecCreate_MPI);
 40:   VecRegisterDynamic(VECSHARED,   path, "VecCreate_Shared",   VecCreate_Shared);
 41:   VecRegisterDynamic(VECFETI,     path, "VecCreate_FETI",     VecCreate_FETI);
 42: #if defined(__cplusplus) && !defined(PETSC_USE_COMPLEX) && !defined(PETSC_USE_SINGLE) && defined(PETSC_HAVE_CXX_NAMESPACE)
 43:   VecRegisterDynamic(VECESI,      path, "VecCreate_ESI",      VecCreate_ESI);
 44:   VecRegisterDynamic(VECPETSCESI, path, "VecCreate_PetscESI", VecCreate_PetscESI);
 45: #endif
 46:   return(0);
 47: }