Lines Matching refs:pEnd
45 (*label)->pEnd = -1; in DMLabelCreate()
105 …pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" PetscInt_FMT " is not in [%" Pet… in DMLabelMakeValid_Private()
431 …dex has been calculated in [%" PetscInt_FMT ", %" PetscInt_FMT ")\n", label->pStart, label->pEnd)); in DMLabelView_Concrete_Ascii()
536 label->pEnd = -1; in DMLabelReset()
620 (*labelnew)->pEnd = -1; in DMLabelDuplicate()
750 PetscInt pStart = PETSC_INT_MAX, pEnd = -1, v; in DMLabelComputeIndex() local
764 pEnd = PetscMax(point + 1, pEnd); in DMLabelComputeIndex()
769 label->pEnd = pEnd; in DMLabelComputeIndex()
770 PetscCall(DMLabelCreateIndex(label, label->pStart, label->pEnd)); in DMLabelComputeIndex()
788 PetscErrorCode DMLabelCreateIndex(DMLabel label, PetscInt pStart, PetscInt pEnd) in DMLabelCreateIndex() argument
797 label->pEnd = pEnd; in DMLabelCreateIndex()
799 PetscCall(PetscBTCreate(pEnd - pStart, &label->bt)); in DMLabelCreateIndex()
810 …pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" PetscInt_FMT " in stratum %" Pet… in DMLabelCreateIndex()
836 label->pEnd = -1; in DMLabelDestroyIndex()
860 PetscErrorCode DMLabelGetBounds(DMLabel label, PetscInt *pStart, PetscInt *pEnd) in DMLabelGetBounds() argument
864 if ((label->pStart == -1) && (label->pEnd == -1)) PetscCall(DMLabelComputeIndex(label)); in DMLabelGetBounds()
869 if (pEnd) { in DMLabelGetBounds()
870 PetscAssertPointer(pEnd, 3); in DMLabelGetBounds()
871 *pEnd = label->pEnd; in DMLabelGetBounds()
925 PetscInt pStart, pEnd; in DMLabelHasPoint() local
931 PetscCall(DMLabelGetBounds(label, &pStart, &pEnd)); in DMLabelHasPoint()
933 …*contains = point >= pStart && point < pEnd && (PetscBTLookup(label->bt, point - label->pStart) ? … in DMLabelHasPoint()
1145 …if (label->bt && point >= label->pStart && point < label->pEnd) PetscCall(PetscBTClear(label->bt, … in DMLabelClearValue()
1622 …pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" PetscInt_FMT " is not in [%" Pet… in DMLabelSetStratumIS()
1660 …if (point >= label->pStart && point < label->pEnd) PetscCall(PetscBTClear(label->bt, point - label… in DMLabelClearStratum()
1693 …tscErrorCode DMLabelSetStratumBounds(DMLabel label, PetscInt value, PetscInt pStart, PetscInt pEnd) in DMLabelSetStratumBounds() argument
1698 PetscCall(ISCreateStride(PETSC_COMM_SELF, pEnd - pStart, pStart, 1, &pIS)); in DMLabelSetStratumBounds()
1827 PetscCall(DMLabelCreateIndex(label, label->pStart, label->pEnd)); in DMLabelPermute()
1988 PetscInt p, pStart, pEnd, s, size, dof, offset, stratum; in DMLabelDistribute() local
2047 PetscCall(PetscSectionGetChart(leafSection, &pStart, &pEnd)); in DMLabelDistribute()
2048 for (p = pStart; p < pEnd; p++) { in DMLabelDistribute()
2062 PetscCall(PetscSectionGetChart(leafSection, &pStart, &pEnd)); in DMLabelDistribute()
2063 for (p = pStart; p < pEnd; p++) { in DMLabelDistribute()
2595 PetscInt pStart, pEnd, p, dof, cdof, off, globalOff = 0, nroots; in PetscSectionCreateGlobalSectionLabel() local
2602 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionCreateGlobalSectionLabel()
2603 PetscCall(PetscSectionSetChart(*gsection, pStart, pEnd)); in PetscSectionCreateGlobalSectionLabel()
2606 …nroots >= pEnd - pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "PetscSF nroots %" PetscInt_FMT " < %… in PetscSectionCreateGlobalSectionLabel()
2608 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2615 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSectionLabel()
2630 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2631 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSectionLabel()
2637 for (p = 0, off = 0; p < pEnd - pStart; ++p) { in PetscSectionCreateGlobalSectionLabel()
2644 for (p = 0, off = 0; p < pEnd - pStart; ++p) { in PetscSectionCreateGlobalSectionLabel()
2652 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2653 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSectionLabel()
2658 if (nroots >= 0 && nroots > pEnd - pStart) PetscCall(PetscFree(tmpOff)); in PetscSectionCreateGlobalSectionLabel()