Actual source code: gridregall.c
1: #ifdef PETSC_RCS_HEADER
2: static char vcid[] = "$Id: gridregall.c,v 1.3 1999/09/18 16:36:44 knepley Exp $";
3: #endif
5: #include src/grid/gridimpl.h
6: EXTERN_C_BEGIN
7: extern int GridCreate_Triangular_1D(Grid);
8: extern int GridCreate_Triangular_2D(Grid);
10: extern int GridSerialize_Generic(MPI_Comm, Grid *, PetscViewer, PetscTruth);
11: EXTERN_C_END
13: /*@C
14: GridRegisterAll - Registers all of the generation routines in the Grid package.
16: Not Collective
18: Input parameter:
19: . path - The dynamic library path
21: Level: advanced
23: .keywords: Grid, register, all
24: .seealso: GridCreate(), GridRegister(), GridRegisterDestroy()
25: @*/
26: int GridRegisterAll(const char path[])
27: {
31: GridRegisterAllCalled = PETSC_TRUE;
33: GridRegisterDynamic(GRID_TRIANGULAR_1D, path, "GridCreate_Triangular_1D", GridCreate_Triangular_1D);
34: GridRegisterDynamic(GRID_TRIANGULAR_2D, path, "GridCreate_Triangular_2D", GridCreate_Triangular_2D);
35: return(0);
36: }
38: /*@C
39: GridSerializeRegisterAll - Registers all of the serialization routines in the Grid package.
41: Not Collective
43: Input parameter:
44: . path - The dynamic library path
46: Level: advanced
48: .keywords: grid, register, all, serialize
49: .seealso: GridSerialize(), GridSerializeRegister(), GridSerializeRegisterDestroy()
50: @*/
51: int GridSerializeRegisterAll(const char path[])
52: {
56: GridSerializeRegisterAllCalled = PETSC_TRUE;
58: GridSerializeRegisterDynamic(GRID_SER_GENERIC, path, "GridSerialize_Generic", GridSerialize_Generic);
59: return(0);
60: }