| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex16.c | 8 DM dm, dmCoarsened, dmRefined; in main() local 35 PetscCall(DMRefine(dm, PetscObjectComm((PetscObject)dm), &dmRefined)); in main() 36 PetscCall(DMView(dmRefined, PETSC_VIEWER_STDOUT_WORLD)); in main() 43 PetscCall(DMDestroy(&dmRefined)); in main()
|
| /petsc/src/dm/impls/plex/generators/ctetgen/ |
| H A D | ctetgenerate.c | 285 PETSC_EXTERN PetscErrorCode DMPlexRefine_CTetgen(DM dm, PetscReal *maxVolumes, DM *dmRefined) in DMPlexRefine_CTetgen() argument 445 …tsc(comm, dim, numCells, numVertices, numCorners, interpolate, cells, dim, meshCoords, dmRefined)); in DMPlexRefine_CTetgen() 450 PetscCall(DMUniversalLabelCreateLabels(universal, PETSC_TRUE, *dmRefined)); in DMPlexRefine_CTetgen() 452 …if (out->pointmarkerlist[v]) PetscCall(DMUniversalLabelSetLabelValue(universal, *dmRefined, PETSC_… in DMPlexRefine_CTetgen() 463 PetscCall(DMPlexGetJoin(*dmRefined, 2, vertices, &numEdges, &edges)); in DMPlexRefine_CTetgen() 465 …PetscCall(DMUniversalLabelSetLabelValue(universal, *dmRefined, PETSC_TRUE, edges[0], out->edgemark… in DMPlexRefine_CTetgen() 466 PetscCall(DMPlexRestoreJoin(*dmRefined, 2, vertices, &numEdges, &edges)); in DMPlexRefine_CTetgen() 475 PetscCall(DMPlexGetFullJoin(*dmRefined, 3, vertices, &numFaces, &faces)); in DMPlexRefine_CTetgen() 477 …PetscCall(DMUniversalLabelSetLabelValue(universal, *dmRefined, PETSC_TRUE, faces[0], out->trifacem… in DMPlexRefine_CTetgen() 478 PetscCall(DMPlexRestoreJoin(*dmRefined, 3, vertices, &numFaces, &faces)); in DMPlexRefine_CTetgen() [all …]
|
| /petsc/src/dm/impls/plex/generators/tetgen/ |
| H A D | tetgenerate.cxx | 311 PETSC_EXTERN PetscErrorCode DMPlexRefine_Tetgen(DM dm, double *maxVolumes, DM *dmRefined) in DMPlexRefine_Tetgen() argument 464 …tsc(comm, dim, numCells, numVertices, numCorners, interpolate, cells, dim, meshCoords, dmRefined)); in DMPlexRefine_Tetgen() 469 PetscCall(DMUniversalLabelCreateLabels(universal, PETSC_TRUE, *dmRefined)); in DMPlexRefine_Tetgen() 471 …if (out.pointmarkerlist[v]) PetscCall(DMUniversalLabelSetLabelValue(universal, *dmRefined, PETSC_T… in DMPlexRefine_Tetgen() 482 PetscCall(DMPlexGetJoin(*dmRefined, 2, vertices, &numEdges, &edges)); in DMPlexRefine_Tetgen() 484 …PetscCall(DMUniversalLabelSetLabelValue(universal, *dmRefined, PETSC_TRUE, edges[0], out.edgemarke… in DMPlexRefine_Tetgen() 485 PetscCall(DMPlexRestoreJoin(*dmRefined, 2, vertices, &numEdges, &edges)); in DMPlexRefine_Tetgen() 494 PetscCall(DMPlexGetFullJoin(*dmRefined, 3, vertices, &numFaces, &faces)); in DMPlexRefine_Tetgen() 496 …PetscCall(DMUniversalLabelSetLabelValue(universal, *dmRefined, PETSC_TRUE, faces[0], out.trifacema… in DMPlexRefine_Tetgen() 497 PetscCall(DMPlexRestoreJoin(*dmRefined, 3, vertices, &numFaces, &faces)); in DMPlexRefine_Tetgen() [all …]
|
| /petsc/src/dm/impls/plex/generators/triangle/ |
| H A D | trigenerate.c | 231 PETSC_EXTERN PetscErrorCode DMPlexRefine_Triangle(DM dm, PetscReal *inmaxVolumes, DM *dmRefined) in DMPlexRefine_Triangle() argument 357 …tsc(comm, dim, numCells, numVertices, numCorners, interpolate, cells, dim, meshCoords, dmRefined)); in DMPlexRefine_Triangle() 359 PetscCall(DMCreateLabel(*dmRefined, labelName)); in DMPlexRefine_Triangle() 360 PetscCall(DMGetLabel(*dmRefined, labelName, &rlabel)); in DMPlexRefine_Triangle() 379 PetscCall(DMPlexGetJoin(*dmRefined, 2, vertices, &numEdges, &edges)); in DMPlexRefine_Triangle() 382 PetscCall(DMPlexRestoreJoin(*dmRefined, 2, vertices, &numEdges, &edges)); in DMPlexRefine_Triangle() 386 PetscCall(DMPlexSetRefinementUniform(*dmRefined, PETSC_FALSE)); in DMPlexRefine_Triangle()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexadapt.c | 164 …al(DM dm, PETSC_UNUSED Vec metric, DMLabel adaptLabel, PETSC_UNUSED DMLabel rgLabel, DM *dmRefined) in DMPlexRefine_Internal() argument 220 PetscCall((*adapt)(dm, NULL, adaptLabel, NULL, dmRefined)); in DMPlexRefine_Internal() 235 PetscCall((*refine)(dm, maxVolumes, dmRefined)); in DMPlexRefine_Internal() 242 PetscCall(DMCopyDisc(dm, *dmRefined)); in DMPlexRefine_Internal() 243 PetscCall(DMPlexCopy_Internal(dm, PETSC_TRUE, PETSC_TRUE, *dmRefined)); in DMPlexRefine_Internal() 244 if (localized) PetscCall(DMLocalizeCoordinates(*dmRefined)); in DMPlexRefine_Internal()
|
| /petsc/src/dm/impls/forest/ |
| H A D | forest.c | 1577 static PetscErrorCode DMRefine_Forest(DM dm, MPI_Comm comm, DM *dmRefined) in DMRefine_Forest() argument 1586 *dmRefined = fineDM; in DMRefine_Forest() 1589 PetscCall(DMForestTemplate(dm, comm, dmRefined)); in DMRefine_Forest() 1595 PetscCall(DMForestSetAdaptivityLabel(*dmRefined, refine)); in DMRefine_Forest()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 2051 DM dmRoot, dmRefined; in DMCreateReferenceTree_pforest() local 2075 PetscCall(P4estToPlex_Local(refined, &dmRefined)); in DMCreateReferenceTree_pforest() 2094 PetscCall(DMPlexPermute(dmRefined, permIS, &dmPerm)); in DMCreateReferenceTree_pforest() 2096 PetscCall(DMDestroy(&dmRefined)); in DMCreateReferenceTree_pforest() 2097 dmRefined = dmPerm; in DMCreateReferenceTree_pforest() 2103 PetscCall(DMCreateLabel(dmRefined, "identity")); in DMCreateReferenceTree_pforest() 2105 for (p = 0; p < nPoints; p++) PetscCall(DMSetLabelValue(dmRefined, "identity", p, ident[p])); in DMCreateReferenceTree_pforest() 2108 PetscCall(DMPlexCreateReferenceTree_Union(dmRoot, dmRefined, "identity", dm)); in DMCreateReferenceTree_pforest() 2114 PetscCall(DMViewFromOptions(dmRefined, NULL, "-dm_p4est_ref_refined_view")); in DMCreateReferenceTree_pforest() 2115 PetscCall(DMViewFromOptions(dmRefined, NULL, "-dm_p4est_ref_tree_view")); in DMCreateReferenceTree_pforest() [all …]
|
| /petsc/src/dm/impls/moab/ |
| H A D | dmmoab.cxx | 27 PETSC_EXTERN PetscErrorCode DMRefine_Moab(DM dm, MPI_Comm comm, DM *dmRefined); 29 PETSC_EXTERN PetscErrorCode DMRefineHierarchy_Moab(DM dm, PetscInt nlevels, DM dmRefined[]);
|