xref: /petsc/src/dm/impls/plex/tests/ex45.c (revision 5f80ce2ab25dff0f4601e710601cbbcecf323266)
113bf4152SMatthew G. Knepley static char help[] = "Tests mesh reordering\n\n";
213bf4152SMatthew G. Knepley 
313bf4152SMatthew G. Knepley #include <petscdmplex.h>
413bf4152SMatthew G. Knepley 
513bf4152SMatthew G. Knepley int main(int argc, char **argv)
613bf4152SMatthew G. Knepley {
713bf4152SMatthew G. Knepley   DM             dm;
813bf4152SMatthew G. Knepley   PetscErrorCode ierr;
913bf4152SMatthew G. Knepley 
1013bf4152SMatthew G. Knepley   ierr = PetscInitialize(&argc, &argv, NULL,help);if (ierr) return ierr;
11*5f80ce2aSJacob Faibussowitsch   CHKERRQ(DMCreate(PETSC_COMM_WORLD, &dm));
12*5f80ce2aSJacob Faibussowitsch   CHKERRQ(DMSetType(dm, DMPLEX));
13*5f80ce2aSJacob Faibussowitsch   CHKERRQ(DMSetFromOptions(dm));
14*5f80ce2aSJacob Faibussowitsch   CHKERRQ(DMViewFromOptions(dm, NULL, "-dm_view"));
15*5f80ce2aSJacob Faibussowitsch   CHKERRQ(DMDestroy(&dm));
1613bf4152SMatthew G. Knepley   ierr = PetscFinalize();
1713bf4152SMatthew G. Knepley   return ierr;
1813bf4152SMatthew G. Knepley }
1913bf4152SMatthew G. Knepley 
2013bf4152SMatthew G. Knepley /*TEST
2113bf4152SMatthew G. Knepley 
2213bf4152SMatthew G. Knepley   testset:
2313bf4152SMatthew G. Knepley     requires: triangle
2413bf4152SMatthew G. Knepley     args: -dm_plex_box_faces 3,3 -dm_plex_reorder rcm -dm_view ::ascii_info_detail
2513bf4152SMatthew G. Knepley 
2613bf4152SMatthew G. Knepley     test:
2713bf4152SMatthew G. Knepley       suffix: 0
2813bf4152SMatthew G. Knepley 
2913bf4152SMatthew G. Knepley     test:
3013bf4152SMatthew G. Knepley       suffix: 1
3113bf4152SMatthew G. Knepley       nsize: 2
32e600fa54SMatthew G. Knepley       args: -petscpartitioner_type simple
3313bf4152SMatthew G. Knepley 
3413bf4152SMatthew G. Knepley   testset:
3513bf4152SMatthew G. Knepley     args: -dm_plex_simplex 0 -dm_plex_box_faces 4,4 -dm_plex_reorder rcm -dm_view ::ascii_info_detail
3613bf4152SMatthew G. Knepley 
3713bf4152SMatthew G. Knepley     test:
3813bf4152SMatthew G. Knepley       suffix: 2
3913bf4152SMatthew G. Knepley 
4013bf4152SMatthew G. Knepley     test:
4113bf4152SMatthew G. Knepley       suffix: 3
4213bf4152SMatthew G. Knepley       nsize: 2
43e600fa54SMatthew G. Knepley       args: -petscpartitioner_type simple
4413bf4152SMatthew G. Knepley 
4513bf4152SMatthew G. Knepley TEST*/
46