Lines Matching refs:pStart

113   PetscInt        dim, depth, p, pStart, pEnd, a, adjSize, idx, size;  in DMPlexCreatePartitionerGraph_Native()  local
145 PetscCall(DMPlexGetHeightStratum(dm, height, &pStart, &pEnd)); in DMPlexCreatePartitionerGraph_Native()
148 PetscCall(PetscSectionSetChart(section, pStart, pEnd)); in DMPlexCreatePartitionerGraph_Native()
153 PetscCall(DMPlexCreateNumbering_Plex(dm, pStart, pEnd, 0, NULL, sfPoint, &cellNumbering)); in DMPlexCreatePartitionerGraph_Native()
175 if (supportSize == 1) adjCells[f] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
178 if (p >= 0) adjCells[f] = DMPlex_GlobalID(cellNum[support[1] - pStart]); in DMPlexCreatePartitionerGraph_Native()
180 if (p >= 0) adjCells[f] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
193 if (supportSize == 1) adjCells[child] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
196 if (p >= 0) adjCells[child] = DMPlex_GlobalID(cellNum[support[1] - pStart]); in DMPlexCreatePartitionerGraph_Native()
198 if (p >= 0) adjCells[child] = DMPlex_GlobalID(cellNum[support[0] - pStart]); in DMPlexCreatePartitionerGraph_Native()
211 for (*numVertices = 0, p = pStart; p < pEnd; p++) { in DMPlexCreatePartitionerGraph_Native()
214 if (cellNum[p - pStart] < 0) continue; in DMPlexCreatePartitionerGraph_Native()
218 const PetscInt gp = DMPlex_GlobalID(cellNum[p - pStart]); in DMPlexCreatePartitionerGraph_Native()
250 if (point != p && pStart <= point && point < pEnd) { in DMPlexCreatePartitionerGraph_Native()
254 *pBuf = DMPlex_GlobalID(cellNum[point - pStart]); in DMPlexCreatePartitionerGraph_Native()
267 for (idx = 0, p = pStart; p < pEnd; p++) { in DMPlexCreatePartitionerGraph_Native()
269 if (cellNum[p - pStart] < 0) continue; in DMPlexCreatePartitionerGraph_Native()
784 PetscInt p, pStart, pEnd; in PetscPartitionerDMPlexPartition() local
786 PetscCall(DMPlexGetHeightStratum(dm, part->height, &pStart, &pEnd)); in PetscPartitionerDMPlexPartition()
787 PetscCall(DMPlexCreateNumbering_Plex(dm, pStart, pEnd, 0, NULL, dm->sf, &globalNumbering)); in PetscPartitionerDMPlexPartition()
789 for (p = 0; p < pEnd - pStart; p++) numVertices += idxs[p] < 0 ? 0 : 1; in PetscPartitionerDMPlexPartition()
796 PetscInt v, p, pStart, pEnd; in PetscPartitionerDMPlexPartition() local
806 PetscCall(DMPlexGetHeightStratum(dm, part->height, &pStart, &pEnd)); in PetscPartitionerDMPlexPartition()
811 for (p = pStart, v = 0; p < pEnd; ++p) { in PetscPartitionerDMPlexPartition()
815 if (gid && gid[p - pStart] < 0) continue; in PetscPartitionerDMPlexPartition()
1396 PetscInt n, numRemote, p, numPoints, pStart, pEnd, idx = 0, nNeighbors; in DMPlexPartitionLabelCreateSF() local
1460 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexPartitionLabelCreateSF()
1461 …PetscCall(PetscSFSetGraph(*sf, pEnd - pStart, numRemote, NULL, PETSC_OWN_POINTER, remotePoints, PE… in DMPlexPartitionLabelCreateSF()
1492 PetscInt pStart, pEnd, i, j, counter, leafCounter, sumDegrees, nroots, nleafs; in DMPlexRewriteSF() local
1506 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexRewriteSF()
1510 PetscCall(PetscMalloc1(pEnd - pStart, &isLeaf)); in DMPlexRewriteSF()
1511 for (i = 0; i < pEnd - pStart; i++) isLeaf[i] = PETSC_FALSE; in DMPlexRewriteSF()
1512 for (i = 0; i < nleafs; i++) isLeaf[ilocal[i] - pStart] = PETSC_TRUE; in DMPlexRewriteSF()
1514 PetscCall(PetscMalloc1(pEnd - pStart + 1, &cumSumDegrees)); in DMPlexRewriteSF()
1516 for (i = 1; i <= pEnd - pStart; i++) cumSumDegrees[i] = cumSumDegrees[i - 1] + degrees[i - 1]; in DMPlexRewriteSF()
1517 sumDegrees = cumSumDegrees[pEnd - pStart]; in DMPlexRewriteSF()
1521 PetscCall(PetscMalloc1(pEnd - pStart, &rankOnLeafs)); in DMPlexRewriteSF()
1522 for (i = 0; i < pEnd - pStart; i++) rankOnLeafs[i] = rank; in DMPlexRewriteSF()
1529 PetscCall(PetscMalloc1(pEnd - pStart, &points)); in DMPlexRewriteSF()
1530 for (i = 0; i < pEnd - pStart; i++) points[i] = pStart + i; in DMPlexRewriteSF()
1535 PetscCall(PetscMalloc1(pEnd - pStart, &newOwners)); in DMPlexRewriteSF()
1536 PetscCall(PetscMalloc1(pEnd - pStart, &newNumbers)); in DMPlexRewriteSF()
1537 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRewriteSF()
1575 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRewriteSF()
1589 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRewriteSF()
1671 PetscInt eBegin, eEnd, nroots, nleafs, pStart, pEnd; in DMPlexRebalanceSharedPoints() local
1729 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexRebalanceSharedPoints()
1730 PetscCall(PetscMalloc1(pEnd - pStart, &toBalance)); in DMPlexRebalanceSharedPoints()
1731 for (i = 0; i < pEnd - pStart; i++) toBalance[i] = (PetscBool)(i >= eBegin && i < eEnd); in DMPlexRebalanceSharedPoints()
1740 PetscCall(PetscMalloc1(pEnd - pStart, &isLeaf)); in DMPlexRebalanceSharedPoints()
1741 PetscCall(PetscMalloc1(pEnd - pStart, &isNonExclusivelyOwned)); in DMPlexRebalanceSharedPoints()
1742 PetscCall(PetscMalloc1(pEnd - pStart, &isExclusivelyOwned)); in DMPlexRebalanceSharedPoints()
1743 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRebalanceSharedPoints()
1750 for (i = 0; i < nleafs; i++) isLeaf[ilocal[i] - pStart] = PETSC_TRUE; in DMPlexRebalanceSharedPoints()
1758 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRebalanceSharedPoints()
1779 PetscCall(PetscMalloc1(pEnd - pStart, &globalNumbersOfLocalOwnedVertices)); in DMPlexRebalanceSharedPoints()
1780 for (i = 0; i < pEnd - pStart; i++) globalNumbersOfLocalOwnedVertices[i] = pStart - 1; in DMPlexRebalanceSharedPoints()
1783 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRebalanceSharedPoints()
1793 PetscCall(PetscMalloc1(pEnd - pStart, &leafGlobalNumbers)); in DMPlexRebalanceSharedPoints()
1804 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRebalanceSharedPoints()
2023 for (i = 0; i < pEnd - pStart; i++) { in DMPlexRebalanceSharedPoints()
2026 pointsToRewrite[counter] = i + pStart; in DMPlexRebalanceSharedPoints()