Lines Matching refs:want
952 PetscInt want = remaining / (m - i) + !!(remaining % (m - i)); in DMDARefineOwnershipRanges() local
953 if (i == m - 1) lf[i] = want; in DMDARefineOwnershipRanges()
958 while ((startf + want) / ratio < nextc - stencil_width) want++; in DMDARefineOwnershipRanges()
961 while ((startf + want - 1 + ratio - 1) / ratio > nextc - 1 + stencil_width) want--; in DMDARefineOwnershipRanges()
963 …if (want < 0 || want > remaining || ((startf + want) / ratio < nextc - stencil_width) || ((startf … in DMDARefineOwnershipRanges()
966 lf[i] = want; in DMDARefineOwnershipRanges()
993 PetscInt want = remaining / (m - i) + !!(remaining % (m - i)); in DMDACoarsenOwnershipRanges() local
994 if (i == m - 1) lc[i] = want; in DMDACoarsenOwnershipRanges()
999 while (nextf / ratio < startc + want - stencil_width) want--; in DMDACoarsenOwnershipRanges()
1002 while ((nextf - 1 + ratio - 1) / ratio > startc + want - 1 + stencil_width) want++; in DMDACoarsenOwnershipRanges()
1003 …if (want < 0 || want > remaining || (nextf / ratio < startc + want - stencil_width) || ((nextf - 1… in DMDACoarsenOwnershipRanges()
1006 lc[i] = want; in DMDACoarsenOwnershipRanges()