Actual source code: mapregall.c

  1: #ifdef PETSC_RCS_HEADER
  2: static char vcid[] = "$Id: mapregall.c,v 1.1 1999/06/21 02:03:51 knepley Exp $";
  3: #endif

 5:  #include src/vec/vecimpl.h
  6: EXTERN_C_BEGIN
  7: extern int PetscMapCreate_MPI(PetscMap);

  9: extern int PetscMapSerialize_MPI(MPI_Comm, PetscMap *, PetscViewer, PetscTruth);
 10: EXTERN_C_END

 12: /*@C
 13:   PetscMapRegisterAll - Registers all of the map components in the Vec package. 

 15:   Not Collective

 17:   Input parameter:
 18: . path - The dynamic library path

 20:   Level: advanced

 22: .keywords: map, register, all
 23: .seealso: PetscMapRegister(), PetscMapRegisterDestroy()
 24: @*/
 25: int PetscMapRegisterAll(const char path[])
 26: {

 30:   PetscMapRegisterAllCalled = PETSC_TRUE;

 32:   PetscMapRegister(MAP_MPI, path, "PetscMapCreate_MPI", PetscMapCreate_MPI);
 33:   return(0);
 34: }

 36: /*@C
 37:   PetscMapSerializeRegisterAll - Registers all of the serialization routines in the Vec package.

 39:   Not Collective

 41:   Input parameter:
 42: . path - The dynamic library path

 44:   Level: advanced

 46: .keywords: PetscMap, register, all, serialize
 47: .seealso: PetscMapSerializeRegister(), PetscMapSerializeRegisterDestroy()
 48: @*/
 49: int PetscMapSerializeRegisterAll(const char path[])
 50: {

 54:   PetscMapSerializeRegisterAllCalled = PETSC_TRUE;

 56:   PetscMapSerializeRegister(MAP_SER_MPI_BINARY, path, "PetscMapSerialize_MPI", PetscMapSerialize_MPI);
 57:   return(0);
 58: }