Lines Matching refs:point
343 const PetscInt point = points[p]; in DMPlexLabelAddCells() local
349 PetscCall(DMPlexGetCellType(dm, point, &ct)); in DMPlexLabelAddCells()
350 PetscCall(DMPlexGetPointHeight(dm, point, &h)); in DMPlexLabelAddCells()
475 PetscInt point = points[p]; in DMPlexLabelClearCells() local
477 if (point >= cStart && point < cEnd) PetscCall(DMLabelClearValue(label, point, values[v])); in DMPlexLabelClearCells()
2037 const PetscInt point = points[p]; in CheckFaultEdge_Private() local
2041 PetscCall(DMPlexGetSupportSize(dm, point, &supportSize)); in CheckFaultEdge_Private()
2043 PetscCall(DMPlexGetSupport(dm, point, &support)); in CheckFaultEdge_Private()
2054 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &Ncl, &closure)); in CheckFaultEdge_Private()
2064 …etscInt_FMT ":%" PetscInt_FMT ", %" PetscInt_FMT ":%" PetscInt_FMT ")\n", point, support[0], valA,… in CheckFaultEdge_Private()
2067 PetscCall(DMLabelGetValue(label, point, &valA)); in CheckFaultEdge_Private()
2068 PetscCall(DMLabelClearValue(label, point, valA)); in CheckFaultEdge_Private()
2069 PetscCall(DMLabelSetValue(label, point, dim - 1)); in CheckFaultEdge_Private()
2077 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &closureSize, &closure)); in CheckFaultEdge_Private()
2094 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &Ncl, &closure)); in CheckFaultEdge_Private()
2205 const PetscInt point = cone[c]; in DMPlexLabelCohesiveComplete() local
2207 PetscCall(DMLabelGetValue(label, point, &val)); in DMPlexLabelCohesiveComplete()
2212 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &closureSize, &closure)); in DMPlexLabelCohesiveComplete()
2220 …PetscCall(DMLabelSetValue(label, point, pos == PETSC_TRUE ? shift + dim - 1 : -(shift + dim - 1))); in DMPlexLabelCohesiveComplete()
2224 PetscCall(DMPlexRestoreTransitiveClosure(dm, point, PETSC_TRUE, &closureSize, &closure)); in DMPlexLabelCohesiveComplete()
2239 const PetscInt point = points[p]; in DMPlexLabelCohesiveComplete() local
2242 PetscCall(DMLabelGetValue(blabel, point, &bval)); in DMPlexLabelCohesiveComplete()
2244 PetscCall(DMLabelGetValue(label, point, &val)); in DMPlexLabelCohesiveComplete()
2247 PetscCall(DMLabelClearValue(blabel, point, bval)); in DMPlexLabelCohesiveComplete()
2252 const PetscInt point = points[p]; in DMPlexLabelCohesiveComplete() local
2255 PetscCall(DMLabelGetValue(blabel, point, &bval)); in DMPlexLabelCohesiveComplete()
2261 PetscCall(DMLabelGetValue(label, point, &val)); in DMPlexLabelCohesiveComplete()
2262 …int %" PetscInt_FMT " has label value %" PetscInt_FMT ", should be part of the fault", point, val); in DMPlexLabelCohesiveComplete()
2263 PetscCall(DMLabelClearValue(label, point, val)); in DMPlexLabelCohesiveComplete()
2264 PetscCall(DMLabelSetValue(label, point, shift2 + val)); in DMPlexLabelCohesiveComplete()
2268 PetscCall(DMPlexGetSupport(dm, point, &support)); in DMPlexLabelCohesiveComplete()
2269 PetscCall(DMPlexGetSupportSize(dm, point, &supportSize)); in DMPlexLabelCohesiveComplete()
2298 const PetscInt point = points[p]; in DMPlexLabelCohesiveComplete() local
2301 PetscCall(PetscFindInt(point, Nl, leaves, &l)); in DMPlexLabelCohesiveComplete()
2306 PetscCall(DMLabelGetValue(label, point, &val)); in DMPlexLabelCohesiveComplete()
2307 …, "Point %" PetscInt_FMT " has label value %" PetscInt_FMT ", should be a fault face", point, val); in DMPlexLabelCohesiveComplete()
2308 PetscCall(DMLabelClearValue(label, point, val)); in DMPlexLabelCohesiveComplete()
2309 PetscCall(DMLabelSetValue(label, point, shift3 + val)); in DMPlexLabelCohesiveComplete()
2310 PetscCall(DMPlexGetTransitiveClosure(dm, point, PETSC_TRUE, &closureSize, &closure)); in DMPlexLabelCohesiveComplete()
2315 …IB, "Point %" PetscInt_FMT " is missing from label, but is in the closure of a fault face", point); in DMPlexLabelCohesiveComplete()
2319 PetscCall(DMPlexRestoreTransitiveClosure(dm, point, PETSC_TRUE, &closureSize, &closure)); in DMPlexLabelCohesiveComplete()
2494 const PetscInt point = star[s]; in DMPlexMarkSubmesh_Uninterpolated() local
2495 if (point >= pStart[depth] && point < pEnd[depth]) star[numCells++] = point; in DMPlexMarkSubmesh_Uninterpolated()
2508 const PetscInt point = closure[cl]; in DMPlexMarkSubmesh_Uninterpolated() local
2511 if (point >= pStart[0] && point < pEnd[0]) { in DMPlexMarkSubmesh_Uninterpolated()
2513 PetscCall(DMLabelGetValue(vertexLabel, point, &vertexLoc)); in DMPlexMarkSubmesh_Uninterpolated()
2514 if (vertexLoc == value) closure[faceSize++] = point; in DMPlexMarkSubmesh_Uninterpolated()
2565 const PetscInt point = star[s]; in DMPlexMarkSubmesh_Interpolated() local
2568 if (point >= pStart[dim - 1] && point < pEnd[dim - 1]) { in DMPlexMarkSubmesh_Interpolated()
2570 PetscCall(DMLabelGetValue(vertexLabel, point, &faceLoc)); in DMPlexMarkSubmesh_Interpolated()
2573 star[numFaces++] = point; in DMPlexMarkSubmesh_Interpolated()
2587 const PetscInt point = closure[c]; in DMPlexMarkSubmesh_Interpolated() local
2590 if (point >= pStart[0] && point < pEnd[0]) { in DMPlexMarkSubmesh_Interpolated()
2591 PetscCall(DMLabelGetValue(vertexLabel, point, &vertexLoc)); in DMPlexMarkSubmesh_Interpolated()
2600 const PetscInt point = closure[c]; in DMPlexMarkSubmesh_Interpolated() local
2603 if (point >= pStart[d] && point < pEnd[d]) { in DMPlexMarkSubmesh_Interpolated()
2604 PetscCall(DMLabelSetValue(subpointMap, point, d)); in DMPlexMarkSubmesh_Interpolated()
2708 const PetscInt point = closure[cl]; in DMPlexMarkCohesiveSubmesh_Interpolated() local
2711 if (point >= pStart[d] && point < pEnd[d]) { in DMPlexMarkCohesiveSubmesh_Interpolated()
2712 PetscCall(DMLabelSetValue(subpointMap, point, d)); in DMPlexMarkCohesiveSubmesh_Interpolated()
3213 const PetscInt point = closure[cl]; in DMPlexCreateSubmesh_Uninterpolated() local
3216 if (point >= vStart && point < vEnd) { in DMPlexCreateSubmesh_Uninterpolated()
3218 PetscCall(PetscFindInt(point, numSubVertices, subVertices, &subVertex)); in DMPlexCreateSubmesh_Uninterpolated()
3220 closure[faceSize] = point; in DMPlexCreateSubmesh_Uninterpolated()
3294 static inline PetscInt DMPlexFilterPoint_Internal(PetscInt point, PetscInt firstSubPoint, PetscInt … in DMPlexFilterPoint_Internal() argument
3299 ierr = PetscFindInt(point, numSubPoints, subPoints, &subPoint); in DMPlexFilterPoint_Internal()
3305 static inline PetscInt DMPlexFilterPointPerm_Internal(PetscInt point, PetscInt firstSubPoint, Petsc… in DMPlexFilterPointPerm_Internal() argument
3310 ierr = PetscFindInt(point, numSubPoints, subPoints, &subPoint); in DMPlexFilterPointPerm_Internal()
3356 const PetscInt point = points[p]; in DMPlexFilterLabels_Internal() local
3359 PetscCall(DMPlexGetPointDepth(dm, point, &d)); in DMPlexFilterLabels_Internal()
3362 subp = DMPlexFilterPoint_Internal(point, firstSubPoint[d], numSubPoints[d], subpoints[d]); in DMPlexFilterLabels_Internal()
3477 const PetscInt point = subpoints[d][p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3482 PetscCall(DMPlexGetConeSize(dm, point, &coneSize)); in DMPlexCreateSubmeshGeneric_Interpolated()
3486 PetscCall(DMPlexGetCone(dm, point, &cone)); in DMPlexCreateSubmeshGeneric_Interpolated()
3497 PetscCall(DMPlexGetCellType(dm, point, &ct)); in DMPlexCreateSubmeshGeneric_Interpolated()
3509 const PetscInt point = subpoints[d][p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3518 PetscCall(DMPlexGetSupport(dm, point, &support)); in DMPlexCreateSubmeshGeneric_Interpolated()
3519 PetscCall(DMPlexGetSupportSize(dm, point, &supportSize)); in DMPlexCreateSubmeshGeneric_Interpolated()
3533 if (cone[c] == point) { in DMPlexCreateSubmeshGeneric_Interpolated()
3542 PetscCall(DMPlexGetConeSize(dm, point, &coneSize)); in DMPlexCreateSubmeshGeneric_Interpolated()
3544 PetscCall(DMPlexGetCone(dm, point, &cone)); in DMPlexCreateSubmeshGeneric_Interpolated()
3545 PetscCall(DMPlexGetConeOrientation(dm, point, &ornt)); in DMPlexCreateSubmeshGeneric_Interpolated()
3632 const PetscInt point = subpoints[d][p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3635 if (point >= firstP && point < lastP) { in DMPlexCreateSubmeshGeneric_Interpolated()
3650 const PetscInt point = subpoints[d][p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3654 if (point >= firstP && point < lastP) { in DMPlexCreateSubmeshGeneric_Interpolated()
3655 PetscCall(PetscSectionGetDof(coordSection, point, &dof)); in DMPlexCreateSubmeshGeneric_Interpolated()
3674 const PetscInt point = subpoints[d][p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3678 if (point >= firstP && point < lastP) { in DMPlexCreateSubmeshGeneric_Interpolated()
3679 PetscCall(PetscSectionGetDof(coordSection, point, &dof)); in DMPlexCreateSubmeshGeneric_Interpolated()
3680 PetscCall(PetscSectionGetOffset(coordSection, point, &off)); in DMPlexCreateSubmeshGeneric_Interpolated()
3683 … %" PetscInt_FMT ", point %" PetscInt_FMT " should be %" PetscInt_FMT, sdof, subpoint, point, dof); in DMPlexCreateSubmeshGeneric_Interpolated()
3757 const PetscInt point = subpoints[p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3759 newLocalPoints[point - pStart].rank = rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3760 newLocalPoints[point - pStart].index = p; in DMPlexCreateSubmeshGeneric_Interpolated()
3791 const PetscInt point = localPoints[l]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3792 …const PetscInt subpoint = DMPlexFilterPointPerm_Internal(point, 0, numSubpoints, sortedPoints ? so… in DMPlexCreateSubmeshGeneric_Interpolated()
3795 newLocalPoints[point - pStart].rank = rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3796 newLocalPoints[point - pStart].index = subpoint; in DMPlexCreateSubmeshGeneric_Interpolated()
3814 PetscInt nleaves1, point; in DMPlexCreateSubmeshGeneric_Interpolated() local
3817 point = subpoints[p]; in DMPlexCreateSubmeshGeneric_Interpolated()
3818 newLocalPoints[point - pStart].index = point; in DMPlexCreateSubmeshGeneric_Interpolated()
3855 const PetscInt point = subpoints[p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3857 … if (newLocalPoints[point - pStart].rank >= 0 && newLocalPoints[point - pStart].rank != rank) ++sl; in DMPlexCreateSubmeshGeneric_Interpolated()
3862 const PetscInt point = subpoints[p]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3864 … if (newLocalPoints[point - pStart].rank >= 0 && newLocalPoints[point - pStart].rank != rank) { in DMPlexCreateSubmeshGeneric_Interpolated()
3866 sremotePoints[sl].rank = newLocalPoints[point - pStart].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3867 sremotePoints[sl].index = newLocalPoints[point - pStart].index; in DMPlexCreateSubmeshGeneric_Interpolated()
3877 const PetscInt point = localPoints[l]; in DMPlexCreateSubmeshGeneric_Interpolated() local
3878 …const PetscInt subpoint = DMPlexFilterPointPerm_Internal(point, 0, numSubpoints, sortedPoints ? so… in DMPlexCreateSubmeshGeneric_Interpolated()
3881 if (newLocalPoints[point].rank == rank) { in DMPlexCreateSubmeshGeneric_Interpolated()
3886 sremotePoints[sl].rank = newLocalPoints[point].rank; in DMPlexCreateSubmeshGeneric_Interpolated()
3887 sremotePoints[sl].index = newLocalPoints[point].index; in DMPlexCreateSubmeshGeneric_Interpolated()
3888 …= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid remote rank for local point %" PetscInt_FMT, point); in DMPlexCreateSubmeshGeneric_Interpolated()
3889 … PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid remote subpoint for local point %" PetscInt_FMT, point); in DMPlexCreateSubmeshGeneric_Interpolated()
4112 const PetscInt point = localPoints[l]; in DMPlexCreateCohesiveSubmesh_Uninterpolated() local
4113 …const PetscInt subPoint = DMPlexFilterPoint_Internal(point, firstSubVertex, numSubVertices, subVer… in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4115 …!(point < vStart) || !(point >= vEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Should not be m… in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4117 newLocalPoints[point - pStart].rank = rank; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4118 newLocalPoints[point - pStart].index = subPoint; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4140 const PetscInt point = localPoints[l]; in DMPlexCreateCohesiveSubmesh_Uninterpolated() local
4141 …const PetscInt subPoint = DMPlexFilterPoint_Internal(point, firstSubVertex, numSubVertices, subVer… in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4144 if (newLocalPoints[point].rank == rank) { in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4149 sremotePoints[sl].rank = newLocalPoints[point].rank; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4150 sremotePoints[sl].index = newLocalPoints[point].index; in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4151 …= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid remote rank for local point %" PetscInt_FMT, point); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4152 … PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid remote subpoint for local point %" PetscInt_FMT, point); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4325 const PetscInt point = leaves ? leaves[l] : l; in DMPlexFilter() local
4327 if (point >= cStart && point < cEnd) { in DMPlexFilter()