Lines Matching refs:nleaves
504 PetscInt pStart, pEnd, p, sStart, sEnd, nleaves, l; in DMPlexCreateOverlapLabel() local
523 PetscCall(PetscSFGetGraph(sfPoint, NULL, &nleaves, &local, &remote)); in DMPlexCreateOverlapLabel()
526 for (l = 0; l < nleaves; ++l) { in DMPlexCreateOverlapLabel()
587 for (l = 0; l < nleaves; ++l) { in DMPlexCreateOverlapLabel()
670 PetscInt pStart, pEnd, p, sStart, sEnd, nleaves, l, el; in DMPlexCreateOverlapLabelFromLabels() local
683 PetscCall(PetscSFGetGraph(sfPoint, NULL, &nleaves, &local, &remote)); in DMPlexCreateOverlapLabelFromLabels()
703 if (local) PetscCall(PetscFindInt(p, nleaves, local, &loc)); in DMPlexCreateOverlapLabelFromLabels()
704 else loc = (p >= 0 && p < nleaves) ? p : -1; in DMPlexCreateOverlapLabelFromLabels()
748 for (l = 0; l < nleaves; ++l) { in DMPlexCreateOverlapLabelFromLabels()
777 PetscInt d, dim, p, pStart, pEnd, nroots, nleaves, newLeaves, point, numSharedPoints; in DMPlexCreateOverlapMigrationSF() local
793 PetscCall(PetscSFGetGraph(overlapSF, &nroots, &nleaves, NULL, &overlapRemote)); in DMPlexCreateOverlapMigrationSF()
794 PetscCall(PetscMalloc2(nroots, &pointDepths, nleaves, &remoteDepths)); in DMPlexCreateOverlapMigrationSF()
799 for (p = 0; p < nleaves; p++) remoteDepths[p] = -1; in DMPlexCreateOverlapMigrationSF()
806 for (p = 0; p < nleaves; p++) depthRecv[remoteDepths[p]]++; in DMPlexCreateOverlapMigrationSF()
818 newLeaves = pEnd - pStart + nleaves; in DMPlexCreateOverlapMigrationSF()
848 for (p = 0; p < nleaves; p++) { in DMPlexCreateOverlapMigrationSF()
888 PetscInt d, ldepth, depth, dim, p, pStart, pEnd, nroots, nleaves; in DMPlexStratifyMigrationSF() local
907 PetscCall(PetscSFGetGraph(sf, &nroots, &nleaves, NULL, &iremote)); in DMPlexStratifyMigrationSF()
908 PetscCall(PetscMalloc2(nroots, &pointDepths, nleaves, &remoteDepths)); in DMPlexStratifyMigrationSF()
919 for (p = 0; p < nleaves; ++p) { in DMPlexStratifyMigrationSF()
927 for (p = 0; p < nleaves; ++p) { in DMPlexStratifyMigrationSF()
970 PetscCall(PetscMalloc1(nleaves, &ilocal)); in DMPlexStratifyMigrationSF()
971 for (p = 0; p < nleaves; ++p) { in DMPlexStratifyMigrationSF()
979 …PetscCall(PetscSFSetGraph(*migrationSF, nroots, nleaves, ilocal, PETSC_OWN_POINTER, (PetscSFNode *… in DMPlexStratifyMigrationSF()
1491 PetscInt p, nroots, nleaves, idx, npointLeaves; in DMPlexCreatePointSF() local
1512 PetscCall(PetscSFGetGraph(migrationSF, &nroots, &nleaves, &leaves, &roots)); in DMPlexCreatePointSF()
1513 PetscCall(PetscMalloc2(nroots, &rootNodes, nleaves, &leafNodes)); in DMPlexCreatePointSF()
1534 PetscCall(PetscMalloc1(nleaves, &leafVote)); in DMPlexCreatePointSF()
1536 for (p = 0; p < nleaves; ++p) { in DMPlexCreatePointSF()
1570 for (p = 0; p < nleaves; p++) { in DMPlexCreatePointSF()
1578 for (npointLeaves = 0, p = 0; p < nleaves; p++) { in DMPlexCreatePointSF()
1583 for (idx = 0, p = 0; p < nleaves; p++) { in DMPlexCreatePointSF()
1596 …PetscCall(PetscSFSetGraph(*pointSF, nleaves, npointLeaves, pointLocal, PETSC_OWN_POINTER, pointRem… in DMPlexCreatePointSF()
1641 PetscInt n, size, nleaves; in DMPlexMigrate() local
1654 PetscCall(PetscSFGetGraph(sf, NULL, &nleaves, NULL, NULL)); in DMPlexMigrate()
1655 PetscCall(PetscMalloc1(nleaves, &numbering_new)); in DMPlexMigrate()
1658 …PetscCall(ISLocalToGlobalMappingCreate(comm, 1, nleaves, numbering_new, PETSC_OWN_POINTER, <ogMi… in DMPlexMigrate()
1699 PetscInt nroots, nleaves, noldleaves; in DMPlexRemapMigrationSF() local
1703 PetscCall(PetscSFGetGraph(sfOverlap, NULL, &nleaves, NULL, NULL)); in DMPlexRemapMigrationSF()
1704 PetscCall(PetscMalloc1(nleaves, &newRemote)); in DMPlexRemapMigrationSF()
1717 …PetscCall(PetscSFSetGraph(*sfMigrationNew, nroots, nleaves, NULL, PETSC_OWN_POINTER, newRemote, PE… in DMPlexRemapMigrationSF()