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: #undef __FUNCT__  
 15: /*@C
 16:   GridRegisterAll - Registers all of the generation routines in the Grid package. 

 18:   Not Collective

 20:   Input parameter:
 21: . path - The dynamic library path

 23:   Level: advanced

 25: .keywords: Grid, register, all
 26: .seealso: GridCreate(), GridRegister(), GridRegisterDestroy()
 27: @*/
 28: int GridRegisterAll(const char path[])
 29: {

 33:   GridRegisterAllCalled = PETSC_TRUE;

 35:   GridRegisterDynamic(GRID_TRIANGULAR_1D, path, "GridCreate_Triangular_1D", GridCreate_Triangular_1D);
 36:   GridRegisterDynamic(GRID_TRIANGULAR_2D, path, "GridCreate_Triangular_2D", GridCreate_Triangular_2D);
 37:   return(0);
 38: }

 40: #undef __FUNCT__  
 42: /*@C
 43:   GridSerializeRegisterAll - Registers all of the serialization routines in the Grid package. 

 45:   Not Collective

 47:   Input parameter:
 48: . path - The dynamic library path

 50:   Level: advanced

 52: .keywords: grid, register, all, serialize
 53: .seealso: GridSerialize(), GridSerializeRegister(), GridSerializeRegisterDestroy()
 54: @*/
 55: int GridSerializeRegisterAll(const char path[])
 56: {

 60:   GridSerializeRegisterAllCalled = PETSC_TRUE;

 62:   GridSerializeRegisterDynamic(GRID_SER_GENERIC, path, "GridSerialize_Generic", GridSerialize_Generic);
 63:   return(0);
 64: }