Lines Matching refs:rpEnd
243 PetscInt numFields, nroots, rpStart, rpEnd, lpStart = PETSC_INT_MAX, lpEnd = -1, f, c; in PetscSFDistributeSection() local
287 PetscCall(PetscSectionGetChart(rootSection, &rpStart, &rpEnd)); in PetscSFDistributeSection()
289 rpEnd = PetscMin(rpEnd, nroots); in PetscSFDistributeSection()
290 rpEnd = PetscMax(rpStart, rpEnd); in PetscSFDistributeSection()
292 sub[0] = (PetscBool)(nroots != rpEnd - rpStart); in PetscSFDistributeSection()
295 PetscCall(ISCreateStride(PETSC_COMM_SELF, rpEnd - rpStart, rpStart, 1, &selected)); in PetscSFDistributeSection()
297 PetscCall(PetscSFCreateEmbeddedRootSF(sf, rpEnd - rpStart, indices, &embedSF)); in PetscSFDistributeSection()
398 PetscInt numRoots, rpStart = 0, rpEnd = 0, lpStart = 0, lpEnd = 0; in PetscSFCreateRemoteOffsets() local
409 PetscCall(PetscSectionGetChart(rootSection, &rpStart, &rpEnd)); in PetscSFCreateRemoteOffsets()
411 PetscCall(ISCreateStride(PETSC_COMM_SELF, rpEnd - rpStart, rpStart, 1, &selected)); in PetscSFCreateRemoteOffsets()
413 PetscCall(PetscSFCreateEmbeddedRootSF(sf, rpEnd - rpStart, indices, &embedSF)); in PetscSFCreateRemoteOffsets()