Lines Matching refs:pStart
44 (*label)->pStart = -1; in DMLabelCreate()
105 …pStart) && !(point >= label->pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" Pet… in DMLabelMakeValid_Private()
106 PetscCall(PetscBTSet(label->bt, point - label->pStart)); in DMLabelMakeValid_Private()
431 …dex has been calculated in [%" PetscInt_FMT ", %" PetscInt_FMT ")\n", label->pStart, label->pEnd)); in DMLabelView_Concrete_Ascii()
535 label->pStart = -1; in DMLabelReset()
619 (*labelnew)->pStart = -1; in DMLabelDuplicate()
750 PetscInt pStart = PETSC_INT_MAX, pEnd = -1, v; in DMLabelComputeIndex() local
763 pStart = PetscMin(point, pStart); in DMLabelComputeIndex()
768 label->pStart = pStart == PETSC_INT_MAX ? -1 : pStart; in DMLabelComputeIndex()
770 PetscCall(DMLabelCreateIndex(label, label->pStart, label->pEnd)); in DMLabelComputeIndex()
788 PetscErrorCode DMLabelCreateIndex(DMLabel label, PetscInt pStart, PetscInt pEnd) in DMLabelCreateIndex() argument
796 label->pStart = pStart; in DMLabelCreateIndex()
799 PetscCall(PetscBTCreate(pEnd - pStart, &label->bt)); in DMLabelCreateIndex()
810 …pStart) && !(point >= pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" PetscInt_F… in DMLabelCreateIndex()
811 PetscCall(PetscBTSet(label->bt, point - pStart)); in DMLabelCreateIndex()
835 label->pStart = -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()
865 if (pStart) { in DMLabelGetBounds()
866 PetscAssertPointer(pStart, 2); in DMLabelGetBounds()
867 *pStart = label->pStart; 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 …pStart) && !(point >= label->pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Label point %" Pet… in DMLabelSetStratumIS()
1623 PetscCall(PetscBTSet(label->bt, point - label->pStart)); in DMLabelSetStratumIS()
1660 …if (point >= label->pStart && point < label->pEnd) PetscCall(PetscBTClear(label->bt, point - label… in DMLabelClearStratum()
1693 PetscErrorCode DMLabelSetStratumBounds(DMLabel label, PetscInt value, PetscInt pStart, PetscInt pEn… 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 …= pEnd - pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "PetscSF nroots %" PetscInt_FMT " < %" PetscI… in PetscSectionCreateGlobalSectionLabel()
2608 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionLabel()
2611 tmpOff = &(*gsection)->atlasDof[-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()
2632 if (tmpOff[p] < 0) (*gsection)->atlasDof[p - pStart] = tmpOff[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()
2654 if (tmpOff[p] < 0) (*gsection)->atlasOff[p - pStart] = tmpOff[p]; in PetscSectionCreateGlobalSectionLabel()
2658 if (nroots >= 0 && nroots > pEnd - pStart) PetscCall(PetscFree(tmpOff)); in PetscSectionCreateGlobalSectionLabel()