Home
last modified time | relevance | path

Searched refs:coneSize (Results 1 – 25 of 40) sorted by relevance

12

/petsc/src/dm/impls/plex/tests/ !
H A Dex4.c59 PetscInt coneSize[5] = {2, 2, 0, 0, 0}; in CreateSimplex_1D() local
64 …PetscCall(DMPlexCreateFromDAG(*dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoor… in CreateSimplex_1D()
112 PetscInt coneSize[11] = {3, 3, 0, 0, 0, 0, 2, 2, 2, 2, 2}; in CreateSimplex_2D() local
117 …PetscCall(DMPlexCreateFromDAG(*dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoor… in CreateSimplex_2D()
150 PetscInt coneSize[6] = {3, 3, 0, 0, 0, 0}; in CreateSimplexHybrid_2D() local
156 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateSimplexHybrid_2D()
161 PetscInt coneSize[9] = {3, 3, 3, 3, 0, 0, 0, 0, 0}; in CreateSimplexHybrid_2D() local
167 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateSimplexHybrid_2D()
222 PetscInt coneSize[15] = {4, 4, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 2}; in CreateTensorProduct_2D() local
227 …PetscCall(DMPlexCreateFromDAG(*dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoor… in CreateTensorProduct_2D()
[all …]
H A Dex34.c39 PetscInt coneSize[11] = {4, 4, 6, 0, 0, 0, 0, 0, 0, 0, 0}; in CreateHybridMesh() local
44 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateHybridMesh()
88 …PetscInt coneSize[21] = {8, 8, 6, 6, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; in CreateReverseHybridMesh() local
94 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateReverseHybridMesh()
122 PetscInt coneSize; in OrderHybridMesh() local
124 PetscCall(DMPlexGetConeSize(*dm, c, &coneSize)); in OrderHybridMesh()
125 if (coneSize == 6) ++Nhyb; in OrderHybridMesh()
130 PetscInt coneSize; in OrderHybridMesh() local
132 PetscCall(DMPlexGetConeSize(*dm, c, &coneSize)); in OrderHybridMesh()
133 if (coneSize == 6) ind[c] = off[1]++; in OrderHybridMesh()
H A Dex7.c175 PetscInt coneSize[6] = {3, 3, 0, 0, 0, 0}; in CreateSimplex_2D() local
181 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateSimplex_2D()
207 PetscInt coneSize[23] = {4, 4, 0, 0, 0, 0, 0}; in CreateSimplex_3D() local
213 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateSimplex_3D()
239 PetscInt coneSize[8] = {4, 4, 0, 0, 0, 0, 0, 0}; in CreateQuad_2D() local
245 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateQuad_2D()
250 PetscInt coneSize[7] = {4, 3, 0, 0, 0, 0, 0}; in CreateQuad_2D() local
256 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateQuad_2D()
282 PetscInt coneSize[14] = {8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; in CreateHex_3D() local
288 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateHex_3D()
H A Dex5.c437 PetscInt coneSize[6] = {3, 3, 0, 0, 0, 0}; in CreateSimplex_2D() local
444 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateSimplex_2D()
452 PetscInt coneSize[10] = {3, 3, 3, 3, 0, 0, 0, 0, 0, 0}; in CreateSimplex_2D() local
459 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateSimplex_2D()
471 PetscInt coneSize[14] = {3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0}; in CreateSimplex_2D() local
480 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateSimplex_2D()
495 PetscInt coneSize[13] = {3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0}; in CreateSimplex_2D() local
502 …PetscCall(DMPlexCreateFromDAG(*dm, 1, numPoints, coneSize, cones, coneOrientations, vertexCoords)); in CreateSimplex_2D()
540 …PetscInt coneSize[23] = {4, 4, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2,… in CreateSimplex_3D() local
547 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateSimplex_3D()
[all …]
H A Dex57.c126 PetscInt coneSize, coneSizeB; in CompareMeshes() local
128 PetscCall(DMPlexGetConeSize(dmA, p, &coneSize)); in CompareMeshes()
130coneSize == coneSizeB, comm, PETSC_ERR_ARG_INCOMP, "Cone size for %" PetscInt_FMT " from dmA %" Pe… in CompareMeshes()
133 for (PetscInt c = 0; c < coneSize; ++c) { in CompareMeshes()
H A Dex9.c88 PetscInt coneSize[6] = {3, 3, 0, 0, 0, 0}; in CreateSimplex_2D() local
100 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateSimplex_2D()
110 PetscInt coneSize[23] = {4, 4, 0, 0, 0, 0, 0}; in CreateSimplex_3D() local
122 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateSimplex_3D()
132 PetscInt coneSize[8] = {4, 4, 0, 0, 0, 0, 0, 0}; in CreateQuad_2D() local
144 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateQuad_2D()
154 PetscInt coneSize[14] = {8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; in CreateHex_3D() local
166 …PetscCall(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoord… in CreateHex_3D()
H A Dex8.c198 PetscInt coneSize, f, dim, cdim, d; in CheckGaussLaw() local
206 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in CheckGaussLaw()
209 for (f = 0; f < coneSize; ++f) { in CheckGaussLaw()
223 PetscInt coneSize, c; in CheckCell() local
235 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in CheckCell()
237 …for (c = 0; c < coneSize; ++c) PetscCall(CheckFVMGeometry(dm, cone[c], dim, &faceCentroidEx[c * di… in CheckCell()
391 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in CheckCell()
393 for (c = 0; c < coneSize; ++c) { in CheckCell()
/petsc/src/dm/impls/plex/ !
H A Dplexinterpolate.c520 PetscInt numFaces = 0, coneSize; in DMPlexInterpolateFaces_Internal() local
524 PetscCall(DMPlexGetConeSize(dm, c, &coneSize)); in DMPlexInterpolateFaces_Internal()
525 for (PetscInt j = 0; j < coneSize; j++) minCone = PetscMin(cone[j], minCone); in DMPlexInterpolateFaces_Internal()
638 PetscInt coneSize, pStart, pEnd, poff = 0; in DMPlexInterpolateFaces_Internal() local
649 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexInterpolateFaces_Internal()
650 PetscCall(DMPlexSetConeSize(idm, p + poff, coneSize)); in DMPlexInterpolateFaces_Internal()
703 PetscInt pStart, pEnd, poff = 0, coneSize; in DMPlexInterpolateFaces_Internal() local
715 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexInterpolateFaces_Internal()
716 …for (PetscInt cp = 0; cp < coneSize; ++cp) icone[cp] = cone[cp] + (cone[cp] >= fStart ? fEnd - fSt… in DMPlexInterpolateFaces_Internal()
727 PetscInt coneSize, numFaces, foff = 0, poff = 0; in DMPlexInterpolateFaces_Internal() local
[all …]
H A Dplexglvis.c817 PetscInt coneSize, i; in DMPlexView_GLVis_ASCII() local
821 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexView_GLVis_ASCII()
822 for (i = 0; i < coneSize; i++) { in DMPlexView_GLVis_ASCII()
828 if (ispe && coneSize) { in DMPlexView_GLVis_ASCII()
840 PetscInt coneSize, i; in DMPlexView_GLVis_ASCII() local
844 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexView_GLVis_ASCII()
845 for (i = 0; i < coneSize; i++) { in DMPlexView_GLVis_ASCII()
851 if (ispe && coneSize) { in DMPlexView_GLVis_ASCII()
884 PetscInt coneSize, i; in DMPlexView_GLVis_ASCII() local
887 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexView_GLVis_ASCII()
[all …]
H A Dplexorient.c23 PetscInt coneSize, c, supportSize, s; in DMPlexOrientPoint() local
30 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexOrientPoint()
33 PetscCall(DMGetWorkArray(dm, coneSize, MPIU_INT, &newcone)); in DMPlexOrientPoint()
34 PetscCall(DMGetWorkArray(dm, coneSize, MPIU_INT, &newornt)); in DMPlexOrientPoint()
35 for (c = 0; c < coneSize; ++c) { in DMPlexOrientPoint()
47 PetscCall(DMRestoreWorkArray(dm, coneSize, MPIU_INT, &newcone)); in DMPlexOrientPoint()
48 PetscCall(DMRestoreWorkArray(dm, coneSize, MPIU_INT, &newornt)); in DMPlexOrientPoint()
53 PetscCall(DMPlexGetConeSize(dm, support[s], &coneSize)); in DMPlexOrientPoint()
56 for (c = 0; c < coneSize; ++c) { in DMPlexOrientPoint()
277 PetscInt coneSize; in DMPlexOrient_Serial() local
[all …]
H A Dplexsubmesh.c1114 PetscInt coneSize, c; in DivideCells_Private() local
1118 PetscCall(DMPlexGetConeSize(dm, clp, &coneSize)); in DivideCells_Private()
1119 for (c = 0; c < coneSize; ++c) { in DivideCells_Private()
1336 PetscInt coneSize, supportSize, qf, qn, qp, e; in DMPlexConstructCohesiveCells_Internal() local
1338 PetscCall(DMPlexGetConeSize(dm, oldp, &coneSize)); in DMPlexConstructCohesiveCells_Internal()
1339 PetscCall(DMPlexSetConeSize(sdm, splitp, coneSize)); in DMPlexConstructCohesiveCells_Internal()
1348 PetscCall(DMPlexSetConeSize(sdm, hybcell, 2 + coneSize)); in DMPlexConstructCohesiveCells_Internal()
1349 switch (coneSize) { in DMPlexConstructCohesiveCells_Internal()
1419 PetscInt coneSize, supportSize, qf, e, s; in DMPlexConstructCohesiveCells_Internal() local
1421 PetscCall(DMPlexGetConeSize(dm, oldp, &coneSize)); in DMPlexConstructCohesiveCells_Internal()
[all …]
H A Dplexfluent.c288 PetscInt coneSize, c; in InsertFace() local
292 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in InsertFace()
293 for (c = 0; c < coneSize; ++c) in InsertFace()
295coneSize, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Face %" PetscInt_FMT " could not be inserted in c… in InsertFace()
304 PetscInt coneSize, newCone[16], newOrnt[16]; in ReorderPolygon() local
308 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in ReorderPolygon()
311 for (PetscInt c = 1; c < coneSize; ++c) { in ReorderPolygon()
317 for (c2 = 0; c2 < coneSize; ++c2) { in ReorderPolygon()
327 …PetscCheck(c2 < coneSize, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cell %" PetscInt_FMT " could not … in ReorderPolygon()
335 PetscCall(DMPlexGetCone(dm, newCone[coneSize - 1], &fcone)); in ReorderPolygon()
[all …]
H A Dplexfvm.c127 PetscInt coneSize, f, pd, d; in DMPlexReconstructGradients_Internal() local
129 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in DMPlexReconstructGradients_Internal()
142 …for (f = 0; f < coneSize; ++f) PetscCall(DMPlexApplyLimiter_Internal(dm, dmCell, lim, dim, dof, ce… in DMPlexReconstructGradients_Internal()
H A Dplexpartition.c219 PetscInt coneSize, numChildren, c, i; in DMPlexCreatePartitionerGraph_Native() local
223 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexCreatePartitionerGraph_Native()
224 for (c = 0; c < coneSize; ++c) { in DMPlexCreatePartitionerGraph_Native()
405 PetscInt coneSize, row, col, f; in DMPlexCreatePartitionerGraph_ViaMat() local
409 PetscCall(DMPlexGetConeSize(dm, c, &coneSize)); in DMPlexCreatePartitionerGraph_ViaMat()
410 for (f = 0; f < coneSize; f++) { in DMPlexCreatePartitionerGraph_ViaMat()
950 PetscInt coneSize, c; in DMPlexAddClosure_Private() local
957 PetscCall(DMPlexGetConeSize(dm, point, &coneSize)); in DMPlexAddClosure_Private()
958 for (c = 0; c < coneSize; c++) PetscCall(DMPlexAddClosure_Private(dm, ht, cone[c])); in DMPlexAddClosure_Private()
1010 PetscInt coneSize, c; in DMPlexAddClosureTree_Up_Private() local
[all …]
H A Dplexadapt.c84 PetscInt coneSize, cl, i, j, d, r; in DMPlexLabelToMetricConstraint() local
116 PetscCall(DMPlexGetConeSize(udm, c, &coneSize)); in DMPlexLabelToMetricConstraint()
117 for (cl = 0; cl < coneSize; ++cl) { in DMPlexLabelToMetricConstraint()
H A Dplex.c1316 PetscInt coneSize, offA, offB, dof, d; in DMPlexView_Ascii() local
1319 PetscCall(DMPlexGetConeSize(dm, e, &coneSize)); in DMPlexView_Ascii()
1320coneSize == 2, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "Edge %" PetscInt_FMT " cone… in DMPlexView_Ascii()
1383 PetscInt coneSize, e; in DMPlexView_Ascii() local
1386 PetscCall(DMPlexGetConeSize(dm, c, &coneSize)); in DMPlexView_Ascii()
1387 for (e = 0; e < coneSize; ++e) { in DMPlexView_Ascii()
1511 PetscInt coneSize, cp; in DMPlexView_Ascii() local
1514 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in DMPlexView_Ascii()
1515 …for (cp = 0; cp < coneSize; ++cp) PetscCall(PetscViewerASCIIPrintf(viewer, "\\draw[->, shorten >=1… in DMPlexView_Ascii()
3934 PetscInt coneSize, c; in DMPlexConvertOldOrientations_Internal() local
[all …]
/petsc/src/dm/impls/plex/tutorials/ !
H A Dex3f90.F9015 PetscInt, dimension(14) :: coneSize
36 coneSize = [8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
55 …PetscCallA(DMPlexCreateFromDAG(dm, depth, numPoints, coneSize, cones, coneOrientations, vertexCoor…
/petsc/src/dm/dt/tests/ !
H A Dex5.c36 PetscInt coneSize; in main() local
38 PetscCall(DMPlexGetConeSize(dm, cStart, &coneSize)); in main()
39 if (coneSize) { in main()
/petsc/src/dm/impls/plex/transform/impls/refine/sbr/ !
H A Dplexrefsbr.c30 PetscInt coneSize, cdim; in SBRGetEdgeLen_Private() local
34 PetscCall(DMPlexGetConeSize(dm, edge, &coneSize)); in SBRGetEdgeLen_Private()
35 …PetscCheck(coneSize == 2, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Edge %" PetscInt_FMT " cone size mu… in SBRGetEdgeLen_Private()
68 PetscInt coneSize, c; in SBRSplitLocalEdges_Private() local
75 PetscCall(DMPlexGetConeSize(dm, cell, &coneSize)); in SBRSplitLocalEdges_Private()
78 for (c = 1; c < coneSize; ++c) { in SBRSplitLocalEdges_Private()
/petsc/src/dm/dt/dualspace/impls/refined/ !
H A Ddualspacerefined.c100 PetscInt coneSize, e; in PetscDualSpaceSetUp_Refined() local
106 PetscCall(DMPlexGetConeSize(dm, c, &coneSize)); in PetscDualSpaceSetUp_Refined()
109 for (e = 0; e < coneSize; e++) { in PetscDualSpaceSetUp_Refined()
/petsc/src/dm/impls/plex/adaptors/pragmatic/ !
H A Dpragmaticadapt.c71 PetscInt coneSize, cl; in DMAdaptMetric_Pragmatic_Plex() local
73 PetscCall(DMPlexGetConeSize(udm, c, &coneSize)); in DMAdaptMetric_Pragmatic_Plex()
75 for (cl = 0; cl < coneSize; ++cl) cells[coff++] = cone[cl] - vStart; in DMAdaptMetric_Pragmatic_Plex()
/petsc/src/dm/impls/plex/transform/impls/extrude/ !
H A Dplextrcohesive.c90 PetscInt coneSize, val; in ComputeSplitFaceNumber() local
95 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in ComputeSplitFaceNumber()
96coneSize < (PetscInt)sizeof(*fsplit) * 8, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cone of size %" PetscI… in ComputeSplitFaceNumber()
97 for (PetscInt c = 0; c < coneSize; ++c) { in ComputeSplitFaceNumber()
126 PetscInt coneSize, val; in ComputeUnsplitFaceNumber() local
131 PetscCall(DMPlexGetConeSize(dm, p, &coneSize)); in ComputeUnsplitFaceNumber()
132coneSize < (PetscInt)sizeof(*funsplit) * 8, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cone of size %" Pets… in ComputeUnsplitFaceNumber()
133 for (PetscInt c = 0; c < coneSize; ++c) { in ComputeUnsplitFaceNumber()
H A Dplextrextrude.c555 PetscInt coneSize, c; in DMPlexTransformSetUp_Extrude() local
557 PetscCall(DMPlexGetConeSize(ex->dmNormal, supp[0], &coneSize)); in DMPlexTransformSetUp_Extrude()
560 for (c = 0; c < coneSize; ++c) in DMPlexTransformSetUp_Extrude()
562 … PetscCheck(c < coneSize, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Asymmetry in cone/support"); in DMPlexTransformSetUp_Extrude()
651 PetscInt suppSize, coneSize, c; in DMPlexTransformGetSubcellOrientation_Extrude() local
657 PetscCall(DMPlexGetConeSize(dm, supp[0], &coneSize)); in DMPlexTransformGetSubcellOrientation_Extrude()
659 for (c = 0; c < coneSize; ++c) in DMPlexTransformGetSubcellOrientation_Extrude()
661 …PetscCheck(c < coneSize, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Source point %" PetscInt_FMT " not… in DMPlexTransformGetSubcellOrientation_Extrude()
/petsc/src/dm/field/impls/ds/ !
H A Ddmfieldds.c807 PetscInt suppSize, s, coneSize, c, numChildren; in DMFieldComputeFaceData_DS() local
819 PetscCall(DMPlexGetConeSize(dm, supp[s], &coneSize)); in DMFieldComputeFaceData_DS()
821 for (c = 0; c < coneSize; ++c) in DMFieldComputeFaceData_DS()
826 …PetscCheck(c != coneSize, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Invalid connectivity: point %" Pe… in DMFieldComputeFaceData_DS()
911 PetscInt coneSize; in DMFieldComputeFaceData_DS() local
932 PetscCall(DMPlexGetConeSize(K, 0, &coneSize)); in DMFieldComputeFaceData_DS()
934 PetscCall(PetscMalloc2(numFaces, &co, coneSize, &counts)); in DMFieldComputeFaceData_DS()
964 …PetscCheck(numCone == coneSize, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Support point does not match ref… in DMFieldComputeFaceData_DS()
967 for (f = 0; f < coneSize; f++) { in DMFieldComputeFaceData_DS()
987 for (f = 0; f < coneSize; f++) PetscCall(PetscCalloc1(numOrient + 1, &counts[f])); in DMFieldComputeFaceData_DS()
[all …]
/petsc/src/dm/impls/plex/adaptors/mmg/ !
H A Dmmgadapt.c65 PetscInt coneSize, cl; in DMAdaptMetric_Mmg_Plex() local
67 PetscCall(DMPlexGetConeSize(udm, c, &coneSize)); in DMAdaptMetric_Mmg_Plex()
69 for (cl = 0; cl < coneSize; ++cl) cells[coff++] = cone[cl] - vStart + 1; in DMAdaptMetric_Mmg_Plex()

12