Home
last modified time | relevance | path

Searched refs:DMLabelSetValue (Results 1 – 25 of 59) sorted by relevance

123

/petsc/src/dm/impls/plex/tests/
H A Dex66.c117 PetscCall(DMLabelSetValue(ctLabel, 0, DM_POLYTOPE_HEXAHEDRON)); in main()
118 PetscCall(DMLabelSetValue(ctLabel, 1, DM_POLYTOPE_POINT)); in main()
119 PetscCall(DMLabelSetValue(ctLabel, 2, DM_POLYTOPE_POINT)); in main()
120 PetscCall(DMLabelSetValue(ctLabel, 3, DM_POLYTOPE_POINT)); in main()
121 PetscCall(DMLabelSetValue(ctLabel, 4, DM_POLYTOPE_POINT)); in main()
122 PetscCall(DMLabelSetValue(ctLabel, 5, DM_POLYTOPE_POINT)); in main()
123 PetscCall(DMLabelSetValue(ctLabel, 6, DM_POLYTOPE_POINT)); in main()
124 PetscCall(DMLabelSetValue(ctLabel, 7, DM_POLYTOPE_POINT)); in main()
125 PetscCall(DMLabelSetValue(ctLabel, 8, DM_POLYTOPE_POINT)); in main()
126 PetscCall(DMLabelSetValue(ctLabel, 9, DM_POLYTOPE_POINT)); in main()
[all …]
H A Dex69.c721 PetscCall(DMLabelSetValue(label, 8, 1)); in CreateQuadMesh1()
722 PetscCall(DMLabelSetValue(label, 2, 0)); in CreateQuadMesh1()
723 PetscCall(DMLabelSetValue(label, 4, 0)); in CreateQuadMesh1()
727 PetscCall(DMLabelSetValue(label, 7, 1)); in CreateQuadMesh1()
728 PetscCall(DMLabelSetValue(label, 1, 0)); in CreateQuadMesh1()
729 PetscCall(DMLabelSetValue(label, 3, 0)); in CreateQuadMesh1()
920 PetscCall(DMLabelSetValue(label, 10, 2)); in CreateHexMesh1()
921 PetscCall(DMLabelSetValue(label, 20, 1)); in CreateHexMesh1()
922 PetscCall(DMLabelSetValue(label, 22, 1)); in CreateHexMesh1()
923 PetscCall(DMLabelSetValue(label, 24, 1)); in CreateHexMesh1()
[all …]
H A Dex74.c84 PetscCall(DMLabelSetValue(filter, 3, filterValue)); in main()
85 PetscCall(DMLabelSetValue(filter, 4, filterValue)); in main()
86 PetscCall(DMLabelSetValue(filter, 5, filterValue)); in main()
89 PetscCall(DMLabelSetValue(filter, 21, filterValue)); in main()
90 PetscCall(DMLabelSetValue(filter, 22, filterValue)); in main()
91 PetscCall(DMLabelSetValue(filter, 23, filterValue)); in main()
H A Dex71.c126 PetscCall(DMLabelSetValue(filter, 0, filterValue)); in main()
127 PetscCall(DMLabelSetValue(filter, 1, filterValue)); in main()
130 PetscCall(DMLabelSetValue(filter, 0, filterValue)); in main()
131 PetscCall(DMLabelSetValue(filter, 2, filterValue)); in main()
H A Dex16.c32 for (PetscInt c = cStartSub; c < cEndSub; ++c) PetscCall(DMLabelSetValue(*label, c, 1)); in CreateHalfCellsLabel()
54 if (centroid[0] < 0.5) PetscCall(DMLabelSetValue(*label, c, 1)); in CreateHalfDomainLabel()
56 if (centroid[0] > 0.5) PetscCall(DMLabelSetValue(*label, c, 1)); in CreateHalfDomainLabel()
76 if (PetscAbsReal(centroid[0] - x) < PETSC_SMALL) PetscCall(DMLabelSetValue(*label, f, 1)); in CreateLineLabel()
H A Dex11.c15 for (i = 0; i < N; ++i) PetscCall(DMLabelSetValue(label, i, values[i % 5])); in TestInsertion()
127 if (i < 2) PetscCall(DMLabelSetValue(label, i, 3)); in TestEmptyStrata()
128 else if (i < 13) PetscCall(DMLabelSetValue(label, i, 2)); in TestEmptyStrata()
131 PetscCall(DMLabelSetValue(label, i, 0)); in TestEmptyStrata()
201 for (c = cStart; c < cEnd; ++c) PetscCall(DMLabelSetValue(label, c, c)); in TestDistribution()
H A Dex20.c23 if (cEnd > cStart) PetscCall(DMLabelSetValue(adaptLabel, cStart, DM_ADAPT_REFINE)); in main()
H A Dex40.c20 for (p = pStart; p < pEnd; ++p) PetscCall(DMLabelSetValue(label, p, p)); in LabelPoints()
H A Dex60.c76 if (x < 0.5) PetscCall(DMLabelSetValue(rgLabel, c, 3)); in main()
77 else PetscCall(DMLabelSetValue(rgLabel, c, 4)); in main()
103 if (flg) PetscCall(DMLabelSetValue(bdLabel, f, 2)); in main()
H A Dex10.c103 for (c = 0; c < 10; ++c) PetscCall(DMLabelSetValue(*label, groupA[c], 101)); in CreateGroupLabel()
104 for (c = 0; c < 6; ++c) PetscCall(DMLabelSetValue(*label, groupB[c], 1001)); in CreateGroupLabel()
H A Dex75.c62 PetscCall(DMLabelSetValue(filter, 15, filterValue)); /* last cell */ in main()
H A Dex41.c47 …if (ctx->refcell[rank] >= 0) PetscCall(DMLabelSetValue(*adaptLabel, ctx->refcell[rank], DM_ADAPT_R… in CreateAdaptLabel()
/petsc/src/dm/impls/plex/transform/impls/refine/sbr/
H A Dplexrefsbr.c87 PetscCall(DMLabelSetValue(sbr->splitPoints, maxedge, 1)); in SBRSplitLocalEdges_Private()
90 PetscCall(DMLabelSetValue(sbr->splitPoints, cell, 2)); in SBRSplitLocalEdges_Private()
178 PetscCall(DMLabelSetValue(sbr->splitPoints, cell, 1)); in DMPlexTransformSetUp_SBR()
184 PetscCall(DMLabelSetValue(sbr->splitPoints, cell, depth)); in DMPlexTransformSetUp_SBR()
190 PetscCall(DMLabelSetValue(sbr->splitPoints, edge, 1)); in DMPlexTransformSetUp_SBR()
233 PetscCall(DMLabelSetValue(trType, p, RT_VERTEX)); in DMPlexTransformSetUp_SBR()
237 if (val == 1) PetscCall(DMLabelSetValue(trType, p, RT_EDGE_SPLIT)); in DMPlexTransformSetUp_SBR()
238 else PetscCall(DMLabelSetValue(trType, p, RT_EDGE)); in DMPlexTransformSetUp_SBR()
253 if (vals[0] && vals[1] && vals[2]) PetscCall(DMLabelSetValue(trType, p, RT_TRIANGLE_SPLIT)); in DMPlexTransformSetUp_SBR()
254 …else if (vals[0] && vals[1]) PetscCall(DMLabelSetValue(trType, p, lens[0] > lens[1] ? RT_TRIANGLE_… in DMPlexTransformSetUp_SBR()
[all …]
/petsc/src/dm/label/tutorials/
H A Dex1.c191 PetscCall(DMLabelSetValue(label0, p, 1)); in main()
192 PetscCall(DMLabelSetValue(label1, p, 2)); in main()
237 PetscCall(DMLabelSetValue(label1, p, val)); in main()
245 PetscCall(DMLabelSetValue(label1, p, val)); in main()
250 PetscCall(DMLabelSetValue(label3, pEnd, val)); in main()
276 PetscCall(DMLabelSetValue(label12, p, val + 1)); in main()
282 PetscCall(DMLabelSetValue(label12, p, val)); in main()
306 if (p % 2) PetscCall(DMLabelSetValue(labelA, p, 19)); in main()
307 else PetscCall(DMLabelSetValue(labelA, p, 17)); in main()
313 if (p % 2) PetscCall(DMLabelSetValue(labelB, p, 19)); in main()
[all …]
/petsc/src/dm/impls/plex/transform/impls/refine/1d/
H A Dplexref1d.c24 PetscCall(DMLabelSetValue(trType, p, 0)); in DMPlexTransformSetUp_1D()
29 if (val == 1) PetscCall(DMLabelSetValue(trType, p, val)); in DMPlexTransformSetUp_1D()
30 else PetscCall(DMLabelSetValue(trType, p, 2)); in DMPlexTransformSetUp_1D()
93 for (i = 0; i < n; ++i) PetscCall(DMLabelSetValue(active, cells[i], DM_ADAPT_REFINE)); in DMPlexTransformSetFromOptions_1D()
/petsc/src/dm/impls/plex/tutorials/
H A Dex10.c38 PetscCall(DMLabelSetValue(label, c, 1)); in CreateDomainLabel()
43 PetscCall(DMLabelSetValue(label, c, 2)); in CreateDomainLabel()
120 PetscCall(DMLabelSetValue(adaptLabel, c, DM_ADAPT_REFINE)); in AdaptMesh()
124 PetscCall(DMLabelSetValue(adaptLabel, c, DM_ADAPT_COARSEN)); in AdaptMesh()
/petsc/src/dm/impls/plex/generators/triangle/
H A Dtrigenerate.c204 if (glabel) PetscCall(DMLabelSetValue(glabel, v + numCells, out.pointmarkerlist[v])); in DMPlexGenerate_Triangle()
216 if (glabel) PetscCall(DMLabelSetValue(glabel, edges[0], out.edgemarkerlist[e])); in DMPlexGenerate_Triangle()
217 if (glabel2) PetscCall(DMLabelSetValue(glabel2, edges[0], out.edgemarkerlist[e])); in DMPlexGenerate_Triangle()
367 if (rlabel) PetscCall(DMLabelSetValue(rlabel, v + numCells, out.pointmarkerlist[v])); in DMPlexRefine_Triangle()
381 if (rlabel) PetscCall(DMLabelSetValue(rlabel, edges[0], out.edgemarkerlist[e])); in DMPlexRefine_Triangle()
/petsc/src/dm/impls/forest/tests/
H A Dex3.c43 PetscCall(DMLabelSetValue(adaptLabel, 0, DM_ADAPT_REFINE)); in main()
62 for (c = cStart; c < cEnd; ++c) PetscCall(DMLabelSetValue(adaptLabel, c, DM_ADAPT_REFINE)); in main()
/petsc/src/dm/impls/plex/
H A Dplexsubmesh.c144 PetscCall(DMLabelSetValue(label, f, cval)); in DMPlexMarkBoundaryFaces_Internal()
147 if (cl == clSize * 2) PetscCall(DMLabelSetValue(label, f, 1)); in DMPlexMarkBoundaryFaces_Internal()
154 else PetscCall(DMLabelSetValue(label, f, val)); in DMPlexMarkBoundaryFaces_Internal()
156 PetscCall(DMLabelSetValue(label, f, val)); in DMPlexMarkBoundaryFaces_Internal()
234 … for (c = 0; c < closureSize * 2; c += 2) PetscCall(DMLabelSetValue(label, closure[c], values[v])); in DMPlexLabelComplete_Internal()
363 PetscCall(DMLabelSetValue(label, cell, values[v])); in DMPlexLabelAddCells()
424 PetscCall(DMLabelSetValue(label, cell, values[v])); in DMPlexLabelAddFaceCells()
797 PetscCall(DMLabelSetValue(newlabel, newpoint, values[val])); in DMPlexShiftLabels_Internal()
831 for (; c < leafLocal[l] && c < cEnd; ++c) PetscCall(DMLabelSetValue(vtkLabel, c, 1)); in DMPlexCreateVTKLabel_Internal()
833 if (leafRemote[l].rank == rank) PetscCall(DMLabelSetValue(vtkLabel, c, 1)); in DMPlexCreateVTKLabel_Internal()
[all …]
H A Dplexegads.c1406 PetscCall(DMLabelSetValue(edgeLabel, numCells + id - 1, eid)); in DMPlexCreateGeom_Internal()
1412 PetscCall(DMLabelSetValue(edgeLabel, points[1], eid)); in DMPlexCreateGeom_Internal()
1417 PetscCall(DMLabelSetValue(edgeLabel, edges[0], eid)); in DMPlexCreateGeom_Internal()
1423 PetscCall(DMLabelSetValue(edgeLabel, edges[0], eid)); in DMPlexCreateGeom_Internal()
1440 PetscCall(DMLabelSetValue(bodyLabel, cOff + t, b)); in DMPlexCreateGeom_Internal()
1441 PetscCall(DMLabelSetValue(faceLabel, cOff + t, fid)); in DMPlexCreateGeom_Internal()
1461 PetscCall(DMLabelSetValue(bodyLabel, closure[cl], bval)); in DMPlexCreateGeom_Internal()
1462 PetscCall(DMLabelSetValue(faceLabel, closure[cl], fval)); in DMPlexCreateGeom_Internal()
2026 PetscCall(DMLabelSetValue(bodyLabel, nStart + bodyVertexIndexStart + vID - 1, b)); in DMPlexCreateGeom()
2027 PetscCall(DMLabelSetValue(vertexLabel, nStart + bodyVertexIndexStart + vID - 1, vID)); in DMPlexCreateGeom()
[all …]
/petsc/src/dm/impls/plex/generators/ctetgen/
H A Dctetgenerate.c256 PetscCall(DMLabelSetValue(bodyLabel, c, cval)); in DMPlexGenerate_CTetgen()
263 if (eVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexGenerate_CTetgen()
267 if (fVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexGenerate_CTetgen()
531 PetscCall(DMLabelSetValue(bodyLabel, c, cval)); in DMPlexRefine_CTetgen()
538 if (eVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexRefine_CTetgen()
542 if (fVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexRefine_CTetgen()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdmlabel.pxi13 PetscErrorCode DMLabelSetValue(PetscDMLabel, PetscInt, PetscInt)
/petsc/src/dm/impls/plex/generators/tetgen/
H A Dtetgenerate.cxx285 PetscCall(DMLabelSetValue(bodyLabel, c, cval)); in DMPlexGenerate_Tetgen()
292 if (eVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexGenerate_Tetgen()
296 if (fVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexGenerate_Tetgen()
564 PetscCall(DMLabelSetValue(bodyLabel, c, cval)); in DMPlexRefine_Tetgen()
571 if (eVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexRefine_Tetgen()
575 if (fVal < 0) PetscCall(DMLabelSetValue(bodyLabel, p, cval)); in DMPlexRefine_Tetgen()
/petsc/src/snes/tutorials/
H A Dex23.c73 if (centroid[1] > midy) PetscCall(DMLabelSetValue(top, c, 1)); in DivideDomain()
74 else PetscCall(DMLabelSetValue(bottom, c, 1)); in DivideDomain()
/petsc/src/dm/impls/plex/transform/impls/filter/
H A Dplextrfilter.c49 PetscCall(DMLabelSetValue(tr->trType, closure[cl], ct)); in DMPlexTransformSetUp_Filter()

123