xref: /petsc/src/dm/impls/plex/tests/ex45.c (revision d5b43468fb8780a8feea140ccd6fa3e6a50411cc)
1 static char help[] = "Tests mesh reordering\n\n";
2 
3 #include <petscdmplex.h>
4 
5 int main(int argc, char **argv)
6 {
7   DM dm;
8 
9   PetscFunctionBeginUser;
10   PetscCall(PetscInitialize(&argc, &argv, NULL, help));
11   PetscCall(DMCreate(PETSC_COMM_WORLD, &dm));
12   PetscCall(DMSetType(dm, DMPLEX));
13   PetscCall(DMSetFromOptions(dm));
14   PetscCall(DMViewFromOptions(dm, NULL, "-dm_view"));
15   PetscCall(DMDestroy(&dm));
16   PetscCall(PetscFinalize());
17   return 0;
18 }
19 
20 /*TEST
21 
22   testset:
23     requires: triangle
24     args: -dm_plex_box_faces 3,3 -dm_plex_reorder rcm -dm_view ::ascii_info_detail
25 
26     test:
27       suffix: 0
28 
29     test:
30       suffix: 1
31       nsize: 2
32       args: -petscpartitioner_type simple
33 
34   testset:
35     args: -dm_plex_simplex 0 -dm_plex_box_faces 4,4 -dm_plex_reorder rcm -dm_view ::ascii_info_detail
36 
37     test:
38       suffix: 2
39 
40     test:
41       suffix: 3
42       nsize: 2
43       args: -petscpartitioner_type simple
44 
45 TEST*/
46