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_2D(Grid);
9: extern int GridSerialize_Generic(MPI_Comm, Grid *, PetscViewer, PetscTruth);
10: EXTERN_C_END
12: /*@C
13: GridRegisterAll - Registers all of the generation routines in the Grid package.
15: Not Collective
17: Input parameter:
18: . path - The dynamic library path
20: Level: advanced
22: .keywords: Grid, register, all
23: .seealso: GridCreate(), GridRegister(), GridRegisterDestroy()
24: @*/
25: int GridRegisterAll(const char path[])
26: {
30: GridRegisterAllCalled = PETSC_TRUE;
32: GridRegisterDynamic(GRID_TRIANGULAR_2D, path, "GridCreate_Triangular_2D", GridCreate_Triangular_2D);
33: return(0);
34: }
36: /*@C
37: GridSerializeRegisterAll - Registers all of the serialization routines in the Grid package.
39: Not Collective
41: Input parameter:
42: . path - The dynamic library path
44: Level: advanced
46: .keywords: grid, register, all, serialize
47: .seealso: GridSerialize(), GridSerializeRegister(), GridSerializeRegisterDestroy()
48: @*/
49: int GridSerializeRegisterAll(const char path[])
50: {
54: GridSerializeRegisterAllCalled = PETSC_TRUE;
56: GridSerializeRegisterDynamic(GRID_SER_GENERIC, path, "GridSerialize_Generic", GridSerialize_Generic);
57: return(0);
58: }