Lines Matching refs:dep

1124               PetscInt dep;  in DivideCells_Private()  local
1126 PetscCall(DMPlexGetPointDepth(dm, clp, &dep)); in DivideCells_Private()
1127 clval = cval < 0 ? -(shift + dep) : shift + dep; in DivideCells_Private()
1261 …PetscInt shift = 100, shift2 = 200, depth = 0, dep, dim, d, sp, maxConeSize, maxSupportSiz… in DMPlexConstructCohesiveCells_Internal() local
1300 const PetscInt dep = values[sp]; in DMPlexConstructCohesiveCells_Internal() local
1302 if ((dep < 0) || (dep > depth)) continue; in DMPlexConstructCohesiveCells_Internal()
1303 PetscCall(DMLabelGetStratumIS(label, dep, &splitIS[dep])); in DMPlexConstructCohesiveCells_Internal()
1304 if (splitIS[dep]) { in DMPlexConstructCohesiveCells_Internal()
1305 PetscCall(ISGetLocalSize(splitIS[dep], &numSplitPoints[dep])); in DMPlexConstructCohesiveCells_Internal()
1306 PetscCall(ISGetIndices(splitIS[dep], &splitPoints[dep])); in DMPlexConstructCohesiveCells_Internal()
1308 PetscCall(DMLabelGetStratumIS(label, shift2 + dep, &unsplitIS[dep])); in DMPlexConstructCohesiveCells_Internal()
1309 if (unsplitIS[dep]) { in DMPlexConstructCohesiveCells_Internal()
1310 PetscCall(ISGetLocalSize(unsplitIS[dep], &numUnsplitPoints[dep])); in DMPlexConstructCohesiveCells_Internal()
1311 PetscCall(ISGetIndices(unsplitIS[dep], &unsplitPoints[dep])); in DMPlexConstructCohesiveCells_Internal()
1329 for (dep = 0; dep <= depth; ++dep) { in DMPlexConstructCohesiveCells_Internal()
1330 for (p = 0; p < numSplitPoints[dep]; ++p) { in DMPlexConstructCohesiveCells_Internal()
1331 const PetscInt oldp = splitPoints[dep][p]; in DMPlexConstructCohesiveCells_Internal()
1333 const PetscInt splitp = p + pMaxNew[dep]; in DMPlexConstructCohesiveCells_Internal()
1344 if (dep == depth - 1) { in DMPlexConstructCohesiveCells_Internal()
1345 const PetscInt hybcell = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1371 } else if (dep == 0) { in DMPlexConstructCohesiveCells_Internal()
1372 const PetscInt hybedge = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1391 } else if (dep == dim - 2) { in DMPlexConstructCohesiveCells_Internal()
1392 const PetscInt hybface = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1414 for (dep = 0; dep <= depth; ++dep) { in DMPlexConstructCohesiveCells_Internal()
1415 for (p = 0; p < numUnsplitPoints[dep]; ++p) { in DMPlexConstructCohesiveCells_Internal()
1416 const PetscInt oldp = unsplitPoints[dep][p]; in DMPlexConstructCohesiveCells_Internal()
1424 if (dep == 0) { in DMPlexConstructCohesiveCells_Internal()
1425 … const PetscInt hybedge = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1] + numSplitPoints[dep]; in DMPlexConstructCohesiveCells_Internal()
1429 PetscCall(PetscFindInt(support[s], numSplitPoints[dep + 1], splitPoints[dep + 1], &e)); in DMPlexConstructCohesiveCells_Internal()
1445 } else if (dep == dim - 2) { in DMPlexConstructCohesiveCells_Internal()
1446 … const PetscInt hybface = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1] + numSplitPoints[dep]; in DMPlexConstructCohesiveCells_Internal()
1473 for (dep = 0; dep <= depth; ++dep) { in DMPlexConstructCohesiveCells_Internal()
1474 for (p = 0; p < numSplitPoints[dep]; ++p) { in DMPlexConstructCohesiveCells_Internal()
1475 const PetscInt oldp = splitPoints[dep][p]; in DMPlexConstructCohesiveCells_Internal()
1477 const PetscInt splitp = p + pMaxNew[dep]; in DMPlexConstructCohesiveCells_Internal()
1488 if (dep == depth - 1) { in DMPlexConstructCohesiveCells_Internal()
1490 const PetscInt hybcell = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1500 PetscCall(PetscFindInt(cone[q], numSplitPoints[dep - 1], splitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1502 PetscCall(PetscFindInt(cone[q], numUnsplitPoints[dep - 1], unsplitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1503 …ate point %" PetscInt_FMT " in split or unsplit points of depth %" PetscInt_FMT, cone[q], dep - 1); in DMPlexConstructCohesiveCells_Internal()
1507 coneNew[2 + q] = v + pMaxNew[dep - 1]; in DMPlexConstructCohesiveCells_Internal()
1508 if (dep > 1) { in DMPlexConstructCohesiveCells_Internal()
1515 … PetscCall(PetscFindInt(econe[r], numSplitPoints[dep - 2], splitPoints[dep - 2], &vs)); in DMPlexConstructCohesiveCells_Internal()
1516 … PetscCall(PetscFindInt(econe[r], numUnsplitPoints[dep - 2], unsplitPoints[dep - 2], &vu)); in DMPlexConstructCohesiveCells_Internal()
1518 …te point %" PetscInt_FMT " in split or unsplit points of depth %" PetscInt_FMT, econe[r], dep - 2); in DMPlexConstructCohesiveCells_Internal()
1590 DMPolytopeType ft = dep == 2 ? DM_POLYTOPE_SEGMENT : DM_POLYTOPE_POINT; in DMPlexConstructCohesiveCells_Internal()
1592 PetscCall(PetscFindInt(cone[qa], numSplitPoints[dep - 1], splitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1594 … PetscCall(PetscFindInt(cone[qa], numUnsplitPoints[dep - 1], unsplitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1595 coneNew[2 + q] = v + pMaxNew[dep] + numSplitPoints[dep] + numSplitPoints[dep - 1]; in DMPlexConstructCohesiveCells_Internal()
1597 coneNew[2 + q] = v + pMaxNew[dep] + numSplitPoints[dep]; in DMPlexConstructCohesiveCells_Internal()
1605 } else if (dep == 0) { in DMPlexConstructCohesiveCells_Internal()
1606 const PetscInt hybedge = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1623 … PetscCall(PetscFindInt(support[e], numSplitPoints[dep + 1], splitPoints[dep + 1], &edge)); in DMPlexConstructCohesiveCells_Internal()
1625 supportNew[qp++] = edge + pMaxNew[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1641 … PetscCall(PetscFindInt(support[e], numSplitPoints[dep + 1], splitPoints[dep + 1], &edge)); in DMPlexConstructCohesiveCells_Internal()
1643 supportNew[qf++] = edge + pMaxNew[dep + 2] + numSplitPoints[dep + 2]; in DMPlexConstructCohesiveCells_Internal()
1647 } else if (dep == dim - 2) { in DMPlexConstructCohesiveCells_Internal()
1648 const PetscInt hybface = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1653 PetscCall(PetscFindInt(cone[q], numSplitPoints[dep - 1], splitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1655 PetscCall(PetscFindInt(cone[q], numUnsplitPoints[dep - 1], unsplitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1656 …ate point %" PetscInt_FMT " in split or unsplit points of depth %" PetscInt_FMT, cone[q], dep - 1); in DMPlexConstructCohesiveCells_Internal()
1659 coneNew[q] = v + pMaxNew[dep - 1]; in DMPlexConstructCohesiveCells_Internal()
1674 supportNew[q++] = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1682 … PetscCall(PetscFindInt(support[e], numSplitPoints[dep + 1], splitPoints[dep + 1], &face)); in DMPlexConstructCohesiveCells_Internal()
1684 supportNew[q++] = face + pMaxNew[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1689 supportNew[q++] = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1696 PetscCall(PetscFindInt(cone[v], numSplitPoints[dep - 1], splitPoints[dep - 1], &vertex)); in DMPlexConstructCohesiveCells_Internal()
1698 … PetscCall(PetscFindInt(cone[v], numUnsplitPoints[dep - 1], unsplitPoints[dep - 1], &vertex)); in DMPlexConstructCohesiveCells_Internal()
1699 …ate point %" PetscInt_FMT " in split or unsplit points of depth %" PetscInt_FMT, cone[v], dep - 1); in DMPlexConstructCohesiveCells_Internal()
1700 coneNew[2 + v] = vertex + pMaxNew[dep] + numSplitPoints[dep] + numSplitPoints[dep - 1]; in DMPlexConstructCohesiveCells_Internal()
1702 coneNew[2 + v] = vertex + pMaxNew[dep] + numSplitPoints[dep]; in DMPlexConstructCohesiveCells_Internal()
1711 … PetscCall(PetscFindInt(support[e], numSplitPoints[dep + 1], splitPoints[dep + 1], &face)); in DMPlexConstructCohesiveCells_Internal()
1713 supportNew[qf++] = face + pMaxNew[dep + 2] + numSplitPoints[dep + 2]; in DMPlexConstructCohesiveCells_Internal()
1720 for (dep = 0; dep <= depth; ++dep) { in DMPlexConstructCohesiveCells_Internal()
1721 for (p = 0; p < numUnsplitPoints[dep]; ++p) { in DMPlexConstructCohesiveCells_Internal()
1722 const PetscInt oldp = unsplitPoints[dep][p]; in DMPlexConstructCohesiveCells_Internal()
1731 if (dep == 0) { in DMPlexConstructCohesiveCells_Internal()
1732 … const PetscInt hybedge = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1] + numSplitPoints[dep]; in DMPlexConstructCohesiveCells_Internal()
1738 PetscCall(PetscFindInt(support[s], numSplitPoints[dep + 1], splitPoints[dep + 1], &e)); in DMPlexConstructCohesiveCells_Internal()
1739 if (e >= 0) supportNew[q++] = e + pMaxNew[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1754 … PetscCall(PetscFindInt(support[e], numSplitPoints[dep + 1], splitPoints[dep + 1], &edge)); in DMPlexConstructCohesiveCells_Internal()
1756 supportNew[qf++] = edge + pMaxNew[dep + 2] + numSplitPoints[dep + 2]; in DMPlexConstructCohesiveCells_Internal()
1758 … PetscCall(PetscFindInt(support[e], numUnsplitPoints[dep + 1], unsplitPoints[dep + 1], &edge)); in DMPlexConstructCohesiveCells_Internal()
1760 … supportNew[qf++] = edge + pMaxNew[dep + 2] + numSplitPoints[dep + 2] + numSplitPoints[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1764 } else if (dep == dim - 2) { in DMPlexConstructCohesiveCells_Internal()
1765 … const PetscInt hybface = p + pMaxNew[dep + 1] + numSplitPoints[dep + 1] + numSplitPoints[dep]; in DMPlexConstructCohesiveCells_Internal()
1773 … PetscCall(PetscFindInt(support[f], numSplitPoints[dep + 1], splitPoints[dep + 1], &face)); in DMPlexConstructCohesiveCells_Internal()
1776 supportNew[qf++] = face + pMaxNew[dep + 1]; in DMPlexConstructCohesiveCells_Internal()
1789 PetscCall(PetscFindInt(cone[0], numUnsplitPoints[dep - 1], unsplitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1791 coneNew[2] = v + pMaxNew[dep] + numSplitPoints[dep] + numSplitPoints[dep - 1]; in DMPlexConstructCohesiveCells_Internal()
1792 PetscCall(PetscFindInt(cone[1], numUnsplitPoints[dep - 1], unsplitPoints[dep - 1], &v)); in DMPlexConstructCohesiveCells_Internal()
1794 coneNew[3] = v + pMaxNew[dep] + numSplitPoints[dep] + numSplitPoints[dep - 1]; in DMPlexConstructCohesiveCells_Internal()
1801 … PetscCall(PetscFindInt(support[f], numSplitPoints[dep + 1], splitPoints[dep + 1], &face)); in DMPlexConstructCohesiveCells_Internal()
1802 supportNew[qf++] = face + pMaxNew[dep + 2] + numSplitPoints[dep + 2]; in DMPlexConstructCohesiveCells_Internal()
1813 PetscInt dep = values[sp]; in DMPlexConstructCohesiveCells_Internal() local
1818 if (dep >= 0) continue; in DMPlexConstructCohesiveCells_Internal()
1819 PetscCall(DMLabelGetStratumIS(label, dep, &pIS)); in DMPlexConstructCohesiveCells_Internal()
1821 dep = -dep - shift; in DMPlexConstructCohesiveCells_Internal()
1840 if (val == dep - 1) { in DMPlexConstructCohesiveCells_Internal()
1841 PetscCall(PetscFindInt(coldp, numSplitPoints[dep - 1], splitPoints[dep - 1], &cp)); in DMPlexConstructCohesiveCells_Internal()
1842 …_WRONG, "Point %" PetscInt_FMT " is not a split point of dimension %" PetscInt_FMT, oldp, dep - 1); in DMPlexConstructCohesiveCells_Internal()
1843 csplitp = pMaxNew[dep - 1] + cp; in DMPlexConstructCohesiveCells_Internal()
1878 for (dep = 0; dep <= depth; ++dep) { in DMPlexConstructCohesiveCells_Internal()
1879 for (p = 0; p < numSplitPoints[dep]; ++p) { in DMPlexConstructCohesiveCells_Internal()
1880 …const PetscInt newp = DMPlexShiftPoint_Internal(splitPoints[dep][p], depth, depthShift) /*depthO… in DMPlexConstructCohesiveCells_Internal()
1881 const PetscInt splitp = pMaxNew[dep] + p; in DMPlexConstructCohesiveCells_Internal()
1885 const PetscInt val = 100 + dep; in DMPlexConstructCohesiveCells_Internal()
1906 const PetscInt dep = values[sp]; in DMPlexConstructCohesiveCells_Internal() local
1908 if ((dep < 0) || (dep > depth)) continue; in DMPlexConstructCohesiveCells_Internal()
1909 if (splitIS[dep]) PetscCall(ISRestoreIndices(splitIS[dep], &splitPoints[dep])); in DMPlexConstructCohesiveCells_Internal()
1910 PetscCall(ISDestroy(&splitIS[dep])); in DMPlexConstructCohesiveCells_Internal()
1911 if (unsplitIS[dep]) PetscCall(ISRestoreIndices(unsplitIS[dep], &unsplitPoints[dep])); in DMPlexConstructCohesiveCells_Internal()
1912 PetscCall(ISDestroy(&unsplitIS[dep])); in DMPlexConstructCohesiveCells_Internal()
2075 PetscInt closureSize, cl, dep; in CheckFaultEdge_Private() local
2081 PetscCall(DMPlexGetPointDepth(dm, closure[cl], &dep)); in CheckFaultEdge_Private()
2082 PetscCall(DMLabelSetValue(label, closure[cl], shift2 + dep)); in CheckFaultEdge_Private()
2084 PetscCall(DMPlexGetPointDepth(dm, closure[cl], &dep)); in CheckFaultEdge_Private()
2086 PetscCall(DMLabelSetValue(label, closure[cl], dep)); in CheckFaultEdge_Private()
2092 PetscInt Ncl, dep, val; in CheckFaultEdge_Private() local
2102 PetscCall(DMPlexGetPointDepth(dm, closure[cl], &dep)); in CheckFaultEdge_Private()
2104 PetscCall(DMLabelSetValue(label, closure[cl], shift2 + dep)); in CheckFaultEdge_Private()
4409 const PetscInt dep = depths[d]; in DMPlexCreateSubpointIS_Internal() local
4412 PetscCall(DMPlexGetDepthStratum(dm, dep, &depStart, &depEnd)); in DMPlexCreateSubpointIS_Internal()
4413 PetscCall(DMLabelGetStratumSize(spmap, dep, &n)); in DMPlexCreateSubpointIS_Internal()
4415 …%" PetscInt_FMT " at depth %" PetscInt_FMT " should be %" PetscInt_FMT, n, dep, depEnd - depStart); in DMPlexCreateSubpointIS_Internal()
4431 PetscCall(DMLabelGetStratumIS(spmap, dep, &is)); in DMPlexCreateSubpointIS_Internal()