xref: /petsc/include/petscdmplextypes.h (revision b7f5c0552e8084366e38178a868f823e9aa0bcbd)
126bd1501SBarry Smith #if !defined(PETSCDMPLEXTYPES_H)
226bd1501SBarry Smith #define PETSCDMPLEXTYPES_H
386fe8405SMatthew G. Knepley 
49318fe57SMatthew G. Knepley /*E
59318fe57SMatthew G. Knepley   DMPlexShape - The domain shape used for automatic mesh creation.
69318fe57SMatthew G. Knepley 
79318fe57SMatthew G. Knepley   Existing shapes include
89318fe57SMatthew G. Knepley $ DM_SHAPE_BOX         - The tensor product of intervals in dimension d
99318fe57SMatthew G. Knepley $ DM_SHAPE_BOX_SURFACE - The surface of a box in dimension d+1
109318fe57SMatthew G. Knepley $ DM_SHAPE_BALL        - The d-dimensional ball
119318fe57SMatthew G. Knepley $ DM_SHAPE_SPHERE      - The surface of the (d+1)-dimensional ball
129318fe57SMatthew G. Knepley $ DM_SHAPE_CYLINDER    - The tensor product of the interval and disk
13*b7f5c055SJed Brown $ DM_SHAPE_SCHWARZ_P   - The Schwarz-P triply periodic minimal surface
14*b7f5c055SJed Brown $ DM_SHAPE_GYROID      - The Gyroid triply periodic minimal surface
159318fe57SMatthew G. Knepley 
169318fe57SMatthew G. Knepley   Level: beginner
179318fe57SMatthew G. Knepley 
189318fe57SMatthew G. Knepley .seealso: DMPlexGetCellRefiner(), DMPlexSetCellRefiner(), DMRefine(), DMPolytopeType
199318fe57SMatthew G. Knepley E*/
20*b7f5c055SJed Brown typedef enum {DM_SHAPE_BOX, DM_SHAPE_BOX_SURFACE, DM_SHAPE_BALL, DM_SHAPE_SPHERE, DM_SHAPE_CYLINDER, DM_SHAPE_SCHWARZ_P, DM_SHAPE_GYROID, DM_SHAPE_UNKNOWN} DMPlexShape;
219318fe57SMatthew G. Knepley PETSC_EXTERN const char * const DMPlexShapes[];
229318fe57SMatthew G. Knepley 
235a107427SMatthew G. Knepley /*E
245a107427SMatthew G. Knepley   DMPlexCSRAlgorithm - The algorithm for building the adjacency graph in CSR format, usually for a mesh partitioner
255a107427SMatthew G. Knepley 
265a107427SMatthew G. Knepley   Existing shapes include
275a107427SMatthew G. Knepley $ DM_PLEX_CSR_MAT     - Use MatPartition by first making a matrix
285a107427SMatthew G. Knepley $ DM_PLEX_CSR_GRAPH   - Use the original Plex and communicate along the boundary
295a107427SMatthew G. Knepley $ DM_PLEX_CSR_OVERLAP - Build an overlapped Plex and then locally compute
305a107427SMatthew G. Knepley 
315a107427SMatthew G. Knepley   Level: beginner
325a107427SMatthew G. Knepley 
335a107427SMatthew G. Knepley .seealso: DMPlexCreatePartitionerGraph(), PetscPartitionerDMPlexPartition(), DMPlexDistribute()
345a107427SMatthew G. Knepley E*/
355a107427SMatthew G. Knepley typedef enum {DM_PLEX_CSR_MAT, DM_PLEX_CSR_GRAPH, DM_PLEX_CSR_OVERLAP} DMPlexCSRAlgorithm;
365a107427SMatthew G. Knepley PETSC_EXTERN const char * const DMPlexCSRAlgorithms[];
375a107427SMatthew G. Knepley 
3886fe8405SMatthew G. Knepley #endif
39