Lines Matching refs:numRoots
709 PetscInt numRoots, numLeaves, l, pStart, pEnd, depth = 0, totShift = 0; in DMPlexShiftSF_Single() local
714 PetscCall(PetscSFGetGraph(sf, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexShiftSF_Single()
716 if (numRoots >= 0) { in DMPlexShiftSF_Single()
717 PetscCall(PetscMalloc2(numRoots, &newLocation, pEnd - pStart, &newRemoteLocation)); in DMPlexShiftSF_Single()
718 for (l = 0; l < numRoots; ++l) newLocation[l] = DMPlexShiftPoint_Internal(l, depth, depthShift); in DMPlexShiftSF_Single()
729 …PetscCall(PetscSFSetGraph(sfNew, numRoots + totShift, numLeaves, glocalPoints, PETSC_OWN_POINTER, … in DMPlexShiftSF_Single()
3713 …PetscInt numRoots, numLeaves, numSubpoints = 0, numSubroots, numSubleaves = 0, l, sl = 0… in DMPlexCreateSubmeshGeneric_Interpolated() local
3736 PetscCall(PetscSFGetGraph(sfPoint, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexCreateSubmeshGeneric_Interpolated()
3737 if (numRoots >= 0) { in DMPlexCreateSubmeshGeneric_Interpolated()
3740 PetscCall(PetscMalloc2(pEnd - pStart, &newLocalPoints, numRoots, &newOwners)); in DMPlexCreateSubmeshGeneric_Interpolated()
3784 for (p = 0; p < numRoots; ++p) { in DMPlexCreateSubmeshGeneric_Interpolated()
3820 PetscCall(PetscMalloc1(numRoots, &newOwners1)); in DMPlexCreateSubmeshGeneric_Interpolated()
3821 for (p = 0; p < numRoots; ++p) { in DMPlexCreateSubmeshGeneric_Interpolated()
3827 for (p = 0, nleaves1 = 0; p < numRoots; ++p) { in DMPlexCreateSubmeshGeneric_Interpolated()
3832 for (p = 0, nleaves1 = 0; p < numRoots; ++p) { in DMPlexCreateSubmeshGeneric_Interpolated()
4094 …PetscInt numRoots, numLeaves, numSubRoots = numSubCells + numSubFaces + numSubVertices, … in DMPlexCreateCohesiveSubmesh_Uninterpolated() local
4102 PetscCall(PetscSFGetGraph(sfPoint, &numRoots, &numLeaves, &localPoints, &remotePoints)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4103 if (numRoots >= 0) { in DMPlexCreateCohesiveSubmesh_Uninterpolated()
4105 PetscCall(PetscMalloc2(pEnd - pStart, &newLocalPoints, numRoots, &newOwners)); in DMPlexCreateCohesiveSubmesh_Uninterpolated()