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 src/vec/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 int VecSerialize_Seq(MPI_Comm, Vec *, PetscViewer, PetscTruth);
 15: extern int VecSerialize_MPI(MPI_Comm, Vec *, PetscViewer, PetscTruth);
 16: EXTERN_C_END

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

 23:   Not Collective

 25:   Input parameter:
 26: . path - The dynamic library path

 28:   Level: advanced

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

 38:   VecRegisterAllCalled = PETSC_TRUE;

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

 51: #undef __FUNCT__  
 53: /*@C
 54:   VecSerializeRegisterAll - Registers all of the serialization routines in the Vec package.

 56:   Not Collective

 58:   Input parameter:
 59: . path - The dynamic library path

 61:   Level: advanced

 63: .keywords: Vec, register, all, serialize
 64: .seealso: VecSerializeRegister(), VecSerializeRegisterDestroy()
 65: @*/
 66: int VecSerializeRegisterAll(const char path[])
 67: {

 71:   VecSerializeRegisterAllCalled = PETSC_TRUE;

 73:   VecSerializeRegister(VEC_SER_SEQ_BINARY, path, "VecSerialize_Seq", VecSerialize_Seq);
 74:   VecSerializeRegister(VEC_SER_MPI_BINARY, path, "VecSerialize_MPI", VecSerialize_MPI);
 75:   return(0);
 76: }