Actual source code: aoregall.c

petsc-3.3-p7 2013-05-11
  2: #include <../src/dm/ao/aoimpl.h>      /*I "petscao.h" I*/
  3: EXTERN_C_BEGIN
  4: extern PetscErrorCode AOCreate_Basic(AO ao);
  5: extern PetscErrorCode AOCreate_MemoryScalable(AO ao);
  6: EXTERN_C_END


 11: /*@C
 12:   AORegisterAll - Registers all of the application ordering components in the AO package.

 14:   Not Collective

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

 19:   Level: advanced

 21: .keywords: AO, register, all
 22: .seealso:  AORegister(), AORegisterDestroy(), AORegisterDynamic()
 23: @*/
 24: PetscErrorCode  AORegisterAll(const char path[])
 25: {

 29:   AORegisterAllCalled = PETSC_TRUE;

 31:   AORegisterDynamic(AOBASIC,           path, "AOCreate_Basic",          AOCreate_Basic);
 32:   AORegisterDynamic(AOMEMORYSCALABLE,  path, "AOCreate_MemoryScalable", AOCreate_MemoryScalable);
 33:   return(0);
 34: }