Lines Matching refs:preForest
136 DM base, preForest, postForest; in main() local
228 PetscCall(DMCreate(comm, &preForest)); in main()
229 PetscCall(DMSetType(preForest, (dim == 2) ? DMP4EST : DMP8EST)); in main()
230 PetscCall(DMCopyDisc(base, preForest)); in main()
231 PetscCall(DMForestSetBaseDM(preForest, base)); in main()
232 PetscCall(DMForestSetMinimumRefinement(preForest, 0)); in main()
233 PetscCall(DMForestSetInitialRefinement(preForest, 1)); in main()
234 PetscCall(DMSetFromOptions(preForest)); in main()
235 PetscCall(DMSetUp(preForest)); in main()
236 PetscCall(DMViewFromOptions(preForest, NULL, "-dm_pre_view")); in main()
239 PetscCall(DMCreateGlobalVector(preForest, &preVec)); in main()
240 PetscCall(DMProjectFunction(preForest, 0., funcs, ctxs, INSERT_VALUES, preVec)); in main()
252 PetscCall(DMGetGlobalVector(preForest, &baseVecMapped)); in main()
253 PetscCall(DMForestTransferVecFromBase(preForest, baseVec, baseVecMapped)); in main()
269 PetscCall(DMRestoreGlobalVector(preForest, &baseVecMapped)); in main()
273 … if (!transfer_from_base[1]) PetscCall(PetscObjectGetReference((PetscObject)preForest, &preCount)); in main()
276 PetscCall(CreateAdaptivityLabel(preForest, &adaptLabel)); in main()
277 PetscCall(DMForestTemplate(preForest, comm, &postForest)); in main()
285 PetscCall(DMForestTransferVec(preForest, preVec, postForest, postVecTransfer, PETSC_TRUE, 0.0)); in main()
310 PetscCall(PetscObjectGetReference((PetscObject)preForest, &postCount)); in main()
324 PetscCall(DMDestroy(&preForest)); in main()
327 preForest = postForest; in main()
339 PetscCall(DMGetGlobalVector(preForest, &baseVecMapped)); in main()
340 PetscCall(DMForestTransferVecFromBase(preForest, baseVec, baseVecMapped)); in main()
356 PetscCall(DMRestoreGlobalVector(preForest, &baseVecMapped)); in main()
361 PetscCall(DMDestroy(&preForest)); in main()