Home
last modified time | relevance | path

Searched refs:forest (Results 1 – 22 of 22) sorted by relevance

/petsc/src/dm/impls/forest/
H A Dforest.c124 DM_Forest *forest = (DM_Forest *)dm->data; in DMForestTemplate() local
158 if (forest->ftemplate) PetscCall((*forest->ftemplate)(dm, *tedm)); in DMForestTemplate()
178 DM_Forest *forest = (DM_Forest *)dm->data; in DMClone_Forest() local
182 forest->refct++; in DMClone_Forest()
183 (*newdm)->data = forest; in DMClone_Forest()
192 DM_Forest *forest = (DM_Forest *)dm->data; in DMDestroy_Forest() local
203 if (--forest->refct > 0) PetscFunctionReturn(PETSC_SUCCESS); in DMDestroy_Forest()
204 if (forest->destroy) PetscCall((*forest->destroy)(dm)); in DMDestroy_Forest()
205 PetscCall(PetscSFDestroy(&forest->cellSF)); in DMDestroy_Forest()
206 PetscCall(PetscSFDestroy(&forest->preCoarseToFine)); in DMDestroy_Forest()
[all …]
/petsc/src/dm/impls/plex/tests/
H A Dex53.c8 DM forest, plex; in main() local
14 PetscCall(DMCreate(comm, &forest)); in main()
15 PetscCall(PetscObjectSetName((PetscObject)forest, "forest")); in main()
16 PetscCall(DMSetType(forest, DMP8EST)); in main()
17 PetscCall(DMSetBasicAdjacency(forest, PETSC_TRUE, PETSC_TRUE)); in main()
26 PetscCall(DMCopyFields(dm_base, PETSC_DETERMINE, PETSC_DETERMINE, forest)); in main()
27 PetscCall(DMForestSetBaseDM(forest, dm_base)); in main()
30 PetscCall(DMForestSetPartitionOverlap(forest, 1)); in main()
31 PetscCall(DMSetFromOptions(forest)); in main()
32 PetscCall(DMSetUp(forest)); in main()
[all …]
H A Dex52.c39 DM forest, plex, NewDM; in main() local
44 PetscCall(DMCreate(PETSC_COMM_WORLD, &forest)); in main()
45 PetscCall(DMSetType(forest, DMP4EST)); in main()
51 PetscCall(DMCopyFields(dm_base, PETSC_DETERMINE, PETSC_DETERMINE, forest)); in main()
52 PetscCall(DMForestSetBaseDM(forest, dm_base)); in main()
55 PetscCall(DMSetFromOptions(forest)); in main()
56 PetscCall(DMSetUp(forest)); in main()
58 PetscCall(DMViewFromOptions(forest, NULL, "-dm_forest_view")); in main()
60 PetscCall(DMConvert(forest, DMPLEX, &plex)); in main()
68 PetscCall(DMSetNumFields(forest, numFields)); in main()
[all …]
/petsc/src/dm/impls/forest/tests/
H A Dex3.c9 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()
[all …]
H A Dex1.c10 DM base, forest, plex; in main() local
25 PetscCall(DMCreate(PETSC_COMM_WORLD, &forest)); in main()
26 PetscCall(DMSetType(forest, DMP4EST)); in main()
27 PetscCall(DMForestSetBaseDM(forest, base)); in main()
28 PetscCall(DMForestSetInitialRefinement(forest, min_refine)); in main()
29 PetscCall(DMForestSetPartitionOverlap(forest, overlap)); in main()
30 PetscCall(DMSetUp(forest)); in main()
32 PetscCall(DMViewFromOptions(forest, NULL, "-dm_view")); in main()
34 PetscCall(DMConvert(forest, DMPLEX, &plex)); in main()
37 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)forest), &s)); in main()
[all …]
H A Dex2.c19 static PetscErrorCode CreateAdaptivityLabel(DM forest, DMLabel *adaptLabel) in CreateAdaptivityLabel() argument
27 PetscCall(DMGetLabel(forest, "identity", &identLabel)); in CreateAdaptivityLabel()
28 PetscCall(DMForestGetCellChart(forest, &cStart, &cEnd)); in CreateAdaptivityLabel()
/petsc/src/dm/impls/plex/tests/output/
H A Dex53_1.out13 DM Object: forest 3 MPI processes
15 Forest forest in 3 dimensions:
16 DM Object: forest 3 MPI processes
18 forest in 3 dimensions:
29 DM Object: forest 3 MPI processes
31 Forest forest in 3 dimensions:
32 DM Object: forest 3 MPI processes
34 forest in 3 dimensions:
H A Dex53_0.out13 DM Object: forest 1 MPI process
15 Forest forest in 3 dimensions:
16 DM Object: forest 1 MPI process
18 forest in 3 dimensions:
29 DM Object: forest 1 MPI process
31 Forest forest in 3 dimensions:
32 DM Object: forest 1 MPI process
34 forest in 3 dimensions:
H A Dex44_quad_adapt_1_forest.out1 DM Object: forest 2 MPI processes
3 forest in 2 dimensions:
H A Dex44_quad_tensor_0_forest_dm_plex_transform_extrude_use_tensor-1.out1 DM Object: forest 1 MPI process
3 forest in 2 dimensions:
H A Dex44_quad_normal_0_forest.out1 DM Object: forest 1 MPI process
3 forest in 2 dimensions:
H A Dex44_quad_tensor_0_forest_dm_plex_transform_extrude_use_tensor-0.out1 DM Object: forest 1 MPI process
3 forest in 2 dimensions:
H A Dex44_quad_normal_1_forest.out1 DM Object: forest 1 MPI process
3 forest in 2 dimensions:
H A Dex44_quad_symmetric_0_forest.out1 DM Object: forest 1 MPI process
3 forest in 2 dimensions:
/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h179 p4est_t *forest; member
384 DM_Forest *forest = (DM_Forest *)dm->data; in DMForestDestroy_pforest() local
385 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMForestDestroy_pforest()
393 if (pforest->forest) PetscCallP4est(p4est_destroy, (pforest->forest)); in DMForestDestroy_pforest()
394 pforest->forest = NULL; in DMForestDestroy_pforest()
402 PetscCall(PetscFree(forest->data)); in DMForestDestroy_pforest()
591 DM_Forest *forest = (DM_Forest *)dm->data; in DMPforestGetRefinementLevel() local
592 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMPforestGetRefinementLevel()
598 PetscCheck(pforest->forest, PetscObjectComm((PetscObject)dm), PETSC_ERR_PLIB, "Missing p4est_t"); in DMPforestGetRefinementLevel()
599 p4est = pforest->forest; in DMPforestGetRefinementLevel()
[all …]
/petsc/doc/manualpages/MANSECHeaders/
H A DPetscSF3 `PetscSF` provides an interface to "star forest" communication patterns that form much of the distr…
H A DDMForest11 <A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/impls/forest/tutorials/index.html">Examples</A><BR>
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSF.pyx4 """The star forest types."""
32 """View a star forest.
51 """Destroy the star forest.
64 """Create a star forest communication context.
85 """Set the type of the star forest.
92 The star forest type.
104 """Return the type name of the star forest.
142 """Reset a star forest so that different sizes or neighbors can be used.
156 """Return star forest graph.
191 """Set star forest graph.
H A DIS.pyx1311 """Create a local-to-global mapping from a star forest.
1318 Star forest mapping contiguous local indices to (rank, offset).
/petsc/src/ts/utils/dmplexlandau/
H A Dplexland.c909 DM forest, plex, adaptedDM = NULL; in adaptToleranceFEM() local
917 forest = ctx->plex[grid]; in adaptToleranceFEM()
918 PetscCall(DMCreateDS(forest)); in adaptToleranceFEM()
919 PetscCall(DMGetDS(forest, &prob)); in adaptToleranceFEM()
920 PetscCall(DMGetDimension(forest, &dim)); in adaptToleranceFEM()
921 PetscCall(DMIsForest(forest, &isForest)); in adaptToleranceFEM()
923 PetscCall(DMConvert(forest, DMPLEX, &plex)); in adaptToleranceFEM()
970 PetscCall(DMGetCoordinatesLocal(forest, &coords)); in adaptToleranceFEM()
971 PetscCall(DMGetCoordinateDM(forest, &cdm)); in adaptToleranceFEM()
1000 PetscCall(DMAdaptLabel(forest, adaptLabel, &adaptedDM)); in adaptToleranceFEM()
/petsc/systems/Apple/iOS/PETSc/PETSc.xcodeproj/
H A Dproject.pbxproj583 …D89D1EC0207AA1AC00FACC19 /* forest.c in Sources */ = {isa = PBXBuildFile; fileRef = D89D1BD8207AA1…
1335 …BD8207AA1AA00FACC19 /* forest.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType …
2106 D89D1BD8207AA1AA00FACC19 /* forest.c */,
2491 D89D1EC0207AA1AC00FACC19 /* forest.c in Sources */,
/petsc/doc/
H A Dpetsc.bib16926 title = {The p4est library: A parallel scalable forest of adaptive octrees},