Lines Matching refs:forest
9 DM base, forest, plex; in main() local
29 PetscCall(DMCreate(PETSC_COMM_WORLD, &forest)); in main()
30 PetscCall(DMSetType(forest, DMP4EST)); in main()
31 PetscCall(DMForestSetBaseDM(forest, base)); in main()
32 PetscCall(DMSetUp(forest)); in main()
34 PetscCall(DMViewFromOptions(forest, NULL, "-dm_view")); in main()
44 PetscCall(DMForestTemplate(forest, PETSC_COMM_WORLD, &postforest)); in main()
48 PetscCall(DMDestroy(&forest)); in main()
49 forest = postforest; in main()
61 PetscCall(DMForestGetCellChart(forest, &cStart, &cEnd)); in main()
64 PetscCall(DMForestTemplate(forest, PETSC_COMM_WORLD, &postforest)); in main()
68 PetscCall(DMDestroy(&forest)); in main()
69 forest = postforest; in main()
72 PetscCall(DMViewFromOptions(forest, NULL, "-dm_view")); in main()
76 PetscCall(DMConvert(forest, DMPLEX, &plex)); in main()
81 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)forest), &s)); in main()
89 PetscCall(DMSetLocalSection(forest, s)); in main()
97 PetscCall(DMGetDimension(forest, &dim)); in main()
99 PetscCall(DMAddField(forest, NULL, (PetscObject)fe)); in main()
101 PetscCall(DMCreateDS(forest)); in main()
105 PetscCall(DMCreateGlobalVector(forest, &g)); in main()
111 PetscCall(DMCreateLocalVector(forest, &l)); in main()
113 PetscCall(DMGlobalToLocal(forest, g, INSERT_VALUES, l)); in main()
115 PetscCall(DMLocalToGlobal(forest, l, INSERT_VALUES, g)); in main()
124 PetscCall(DMCreateGlobalVector(forest, &g2)); in main()
140 PetscCall(DMDestroy(&forest)); in main()