xref: /petsc/src/dm/impls/plex/tests/ex45.c (revision f97672e55eacc8688507b9471cd7ec2664d7f203)
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   PetscCall(PetscInitialize(&argc, &argv, NULL,help));
10   PetscCall(DMCreate(PETSC_COMM_WORLD, &dm));
11   PetscCall(DMSetType(dm, DMPLEX));
12   PetscCall(DMSetFromOptions(dm));
13   PetscCall(DMViewFromOptions(dm, NULL, "-dm_view"));
14   PetscCall(DMDestroy(&dm));
15   PetscCall(PetscFinalize());
16   return 0;
17 }
18 
19 /*TEST
20 
21   testset:
22     requires: triangle
23     args: -dm_plex_box_faces 3,3 -dm_plex_reorder rcm -dm_view ::ascii_info_detail
24 
25     test:
26       suffix: 0
27 
28     test:
29       suffix: 1
30       nsize: 2
31       args: -petscpartitioner_type simple
32 
33   testset:
34     args: -dm_plex_simplex 0 -dm_plex_box_faces 4,4 -dm_plex_reorder rcm -dm_view ::ascii_info_detail
35 
36     test:
37       suffix: 2
38 
39     test:
40       suffix: 3
41       nsize: 2
42       args: -petscpartitioner_type simple
43 
44 TEST*/
45