Lines Matching refs:pStart

183   PetscInt depth, maxC, maxS, maxP, pStart, pEnd, asiz, maxAnchors = 1;  in DMPlexGetMaxAdjacencySize_Internal()  local
198 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexGetMaxAdjacencySize_Internal()
213 if ((depth == 3 && maxP > 200) || (depth == 2 && maxP > 580)) asiz = pEnd - pStart; in DMPlexGetMaxAdjacencySize_Internal()
216 *max_adjacency_size = PetscMin(asiz, pEnd - pStart); in DMPlexGetMaxAdjacencySize_Internal()
355 PetscInt pStart, pEnd, p, numLeaves, l, numNeighbors, n; in DMPlexCreateTwoSidedProcessSF() local
369 PetscCall(PetscSectionGetChart(rootRankSection, &pStart, &pEnd)); in DMPlexCreateTwoSidedProcessSF()
371 for (p = pStart; p < pEnd; ++p) { in DMPlexCreateTwoSidedProcessSF()
380 PetscCall(PetscSectionGetChart(leafRankSection, &pStart, &pEnd)); in DMPlexCreateTwoSidedProcessSF()
382 for (p = pStart; p < pEnd; ++p) { in DMPlexCreateTwoSidedProcessSF()
445 PetscInt pStart, pEnd, p, nedges; in DMPlexDistributeOwnership() local
451 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexDistributeOwnership()
455 PetscCall(PetscSectionSetChart(rootSection, pStart, pEnd)); in DMPlexDistributeOwnership()
458 …for (p = pStart; p < pEnd; ++p) PetscCall(PetscSectionSetDof(rootSection, p, rootdegree[p - pStart in DMPlexDistributeOwnership()
462 PetscCall(PetscMalloc1(pEnd - pStart, &myrank)); in DMPlexDistributeOwnership()
464 for (p = 0; p < pEnd - pStart; ++p) myrank[p] = rank; in DMPlexDistributeOwnership()
504 PetscInt pStart, pEnd, p, sStart, sEnd, nleaves, l; in DMPlexCreateOverlapLabel() local
515 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexCreateOverlapLabel()
519 for (p = pStart; p < pEnd; ++p) PetscCall(DMLabelSetValue(*ovLabel, p, rank)); in DMPlexCreateOverlapLabel()
535 for (p = pStart; p < pEnd; ++p) { in DMPlexCreateOverlapLabel()
586 for (p = pStart; p < pEnd; ++p) PetscCall(DMLabelSetValue(*ovLabel, p, rank)); in DMPlexCreateOverlapLabel()
670 PetscInt pStart, pEnd, p, sStart, sEnd, nleaves, l, el; in DMPlexCreateOverlapLabelFromLabels() local
681 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexCreateOverlapLabelFromLabels()
747 for (p = pStart; p < pEnd; ++p) PetscCall(DMLabelSetValue(*ovLabel, p, rank)); in DMPlexCreateOverlapLabelFromLabels()
777 PetscInt d, dim, p, pStart, pEnd, nroots, nleaves, newLeaves, point, numSharedPoints; in DMPlexCreateOverlapMigrationSF() local
796 PetscCall(DMPlexGetDepthStratum(dm, d, &pStart, &pEnd)); in DMPlexCreateOverlapMigrationSF()
797 for (p = pStart; p < pEnd; p++) pointDepths[p] = d; in DMPlexCreateOverlapMigrationSF()
812 PetscCall(DMPlexGetDepthStratum(dm, d, &pStart, &pEnd)); in DMPlexCreateOverlapMigrationSF()
813 depthIdx[d] = pStart + depthShift[d]; in DMPlexCreateOverlapMigrationSF()
817 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexCreateOverlapMigrationSF()
818 newLeaves = pEnd - pStart + nleaves; in DMPlexCreateOverlapMigrationSF()
823 PetscCall(DMPlexGetDepthStratum(dm, d, &pStart, &pEnd)); in DMPlexCreateOverlapMigrationSF()
824 for (p = pStart; p < pEnd; p++) { in DMPlexCreateOverlapMigrationSF()
837 PetscCall(DMPlexGetDepthStratum(dm, d, &pStart, &pEnd)); in DMPlexCreateOverlapMigrationSF()
839 if (pStart <= sharedLocal[p] && sharedLocal[p] < pEnd) { in DMPlexCreateOverlapMigrationSF()
860 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexCreateOverlapMigrationSF()
861 …PetscCall(PetscSFSetGraph(*migrationSF, pEnd - pStart, newLeaves, ilocal, PETSC_OWN_POINTER, iremo… in DMPlexCreateOverlapMigrationSF()
888 PetscInt d, ldepth, depth, dim, p, pStart, pEnd, nroots, nleaves; in DMPlexStratifyMigrationSF() local
910 PetscCall(DMPlexGetDepthStratum(dm, d, &pStart, &pEnd)); in DMPlexStratifyMigrationSF()
911 for (p = pStart; p < pEnd; ++p) { in DMPlexStratifyMigrationSF()
1165 PetscInt pStart, pEnd; in DMPlexDistributeCones() local
1167 PetscCall(PetscSectionGetChart(pmesh->coneSection, &pStart, &pEnd)); in DMPlexDistributeCones()
1168 PetscCall(PetscSectionSetChart(pmesh->supportSection, pStart, pEnd)); in DMPlexDistributeCones()
1346 PetscInt pStart, pEnd; in DMPlexDistributeSetupTree() local
1351 PetscCall(DMPlexGetChart(dmParallel, &pStart, &pEnd)); in DMPlexDistributeSetupTree()
1353 PetscCall(PetscSectionSetChart(newParentSection, pStart, pEnd)); in DMPlexDistributeSetupTree()
1727 PetscInt pStart, pEnd, point; in DMPlexCreateClosureIndex_CELL() local
1732 PetscCall(DMPlexGetHeightStratum(dm, 0, &pStart, &pEnd)); in DMPlexCreateClosureIndex_CELL()
1734 PetscCall(PetscSectionSetChart(clSection, pStart, pEnd)); in DMPlexCreateClosureIndex_CELL()
1735 PetscCall(PetscMalloc1((2 * (pEnd - pStart)), &closure)); in DMPlexCreateClosureIndex_CELL()
1736 for (point = pStart; point < pEnd; point++) { in DMPlexCreateClosureIndex_CELL()
1742 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, 2 * (pEnd - pStart), closure, PETSC_OWN_POINTER, &clPoi… in DMPlexCreateClosureIndex_CELL()
1880 PetscInt pStart, pEnd, proc, npoints, poff = 0, nranks; in DMPlexDistribute() local
1885 PetscCall(PetscSectionGetChart(cellPartSection, &pStart, &pEnd)); in DMPlexDistribute()
1886 for (proc = pStart; proc < pEnd; proc++) { in DMPlexDistribute()
1898 PetscCall(PetscSectionGetChart(cellPartSection, &pStart, &pEnd)); in DMPlexDistribute()
1899 for (proc = pStart; proc < pEnd; proc++) { in DMPlexDistribute()
2356 PetscInt pStart, pEnd, p; in DMPlexGetRedundantDM() local
2377 PetscCall(DMPlexGetChart(gatherDM, &pStart, &pEnd)); in DMPlexGetRedundantDM()
2378 numPoints = pEnd - pStart; in DMPlexGetRedundantDM()
2386 …PetscCall(PetscSFSetGraph(migrationSF, pEnd - pStart, numPoints, NULL, PETSC_OWN_POINTER, points, … in DMPlexGetRedundantDM()
2434 PetscInt pStart, pEnd, count; in DMPlexIsDistributed() local
2447 PetscCall(DMPlexGetChart(dm, &pStart, &pEnd)); in DMPlexIsDistributed()
2448 count = (pEnd - pStart) > 0 ? 1 : 0; in DMPlexIsDistributed()