Searched refs:cumSumDegrees (Results 1 – 1 of 1) sorted by relevance
1493 …PetscInt *cumSumDegrees, *newOwners, *newNumbers, *rankOnLeafs, *locationsOfLeafs, *remot… in DMPlexRewriteSF() local1514 PetscCall(PetscMalloc1(pEnd - pStart + 1, &cumSumDegrees)); in DMPlexRewriteSF()1515 cumSumDegrees[0] = 0; 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()1552 if (locationsOfLeafs[cumSumDegrees[oldNumber] + j] == newOwner) { in DMPlexRewriteSF()1553 newNumber = remoteLocalPointOfLeafs[cumSumDegrees[oldNumber] + j]; in DMPlexRewriteSF()1564 PetscCall(PetscFree(cumSumDegrees)); in DMPlexRewriteSF()