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: /*@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()
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_MATSINGLE) && 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: }
49: /*@C
50: VecSerializeRegisterAll - Registers all of the serialization routines in the Vec package.
52: Not Collective
54: Input parameter:
55: . path - The dynamic library path
57: Level: advanced
59: .keywords: Vec, register, all, serialize
60: .seealso: VecSerializeRegister(), VecSerializeRegisterDestroy()
61: @*/
62: int VecSerializeRegisterAll(const char path[])
63: {
67: VecSerializeRegisterAllCalled = PETSC_TRUE;
69: VecSerializeRegister(VEC_SER_SEQ_BINARY, path, "VecSerialize_Seq", VecSerialize_Seq);
70: VecSerializeRegister(VEC_SER_MPI_BINARY, path, "VecSerialize_MPI", VecSerialize_MPI);
71: return(0);
72: }