Date: 2013-07-02T14:46:13+00:00

Actual source code: dmregall.c
petsc-3.4.2 2013-07-02

      2: #include <petscdm.h>     /*I  "petscdm.h"  I*/
      3: PETSC_EXTERN PetscErrorCode DMCreate_DA(DM);
      4: PETSC_EXTERN PetscErrorCode DMCreate_Composite(DM);
      5: PETSC_EXTERN PetscErrorCode DMCreate_Sliced(DM);
      6: PETSC_EXTERN PetscErrorCode DMCreate_Shell(DM);
      7: PETSC_EXTERN PetscErrorCode DMCreate_ADDA(DM);
      8: PETSC_EXTERN PetscErrorCode DMCreate_Redundant(DM);
      9: PETSC_EXTERN PetscErrorCode DMCreate_Plex(DM);
     10: PETSC_EXTERN PetscErrorCode DMCreate_Patch(DM);
     11: #if defined(PETSC_HAVE_SIEVE)
     12: PETSC_EXTERN PetscErrorCode DMCreate_Mesh(DM);
     13: PETSC_EXTERN PetscErrorCode DMCreate_Cartesian(DM);
     14: #endif
     15: PETSC_EXTERN PetscErrorCode  DMCreate_Moab(DM);

     19: /*@C
     20:   DMRegisterAll - Registers all of the DM components in the DM package.

     22:   Not Collective

     24:   Input parameter:
     25: . path - The dynamic library path

     27:   Level: advanced

     29: .keywords: DM, register, all
     30: .seealso:  DMRegister(), DMRegisterDestroy()
     31: @*/
     32: PetscErrorCode  DMRegisterAll()
     33: {

     37:   DMRegisterAllCalled = PETSC_TRUE;

     39:   DMRegister(DMDA,         DMCreate_DA);
     40:   DMRegister(DMCOMPOSITE,  DMCreate_Composite);
     41:   DMRegister(DMSLICED,     DMCreate_Sliced);
     42:   DMRegister(DMSHELL,      DMCreate_Shell);
     43:   DMRegister(DMADDA,       DMCreate_ADDA);
     44:   DMRegister(DMREDUNDANT,  DMCreate_Redundant);
     45:   DMRegister(DMPLEX,       DMCreate_Plex);
     46:   DMRegister(DMPATCH,      DMCreate_Patch);
     47: #if defined(PETSC_HAVE_SIEVE)
     48:   DMRegister(DMMESH,       DMCreate_Mesh);
     49:   DMRegister(DMCARTESIAN,  DMCreate_Cartesian);
     50: #endif
     51: #if defined(PETSC_HAVE_MOAB)
     52:   DMRegister(DMMOAB,       DMCreate_Moab);
     53: #endif
     54:   return(0);
     55: }