Lines Matching refs:pStart
44 (*s)->pStart = -1; in PetscSectionCreate()
98 PetscInt numFields, f, c, pStart, pEnd, p; in PetscSectionCopy_Internal() local
121 PetscCall(PetscSectionGetChart(section, &pStart, &pEnd)); in PetscSectionCopy_Internal()
122 PetscCall(PetscSectionSetChart(newSection, pStart, pEnd)); in PetscSectionCopy_Internal()
127 for (p = pStart; p < pEnd; ++p) { in PetscSectionCopy_Internal()
129 …l force_constrained = (PetscBool)(constrained_dofs && PetscBTLookup(constrained_dofs, p - pStart)); in PetscSectionCopy_Internal()
147 for (p = pStart; p < pEnd; ++p) { in PetscSectionCopy_Internal()
150 … force_constrained = (PetscBool)(constrained_dofs && PetscBTLookup(constrained_dofs, p - pStart)); in PetscSectionCopy_Internal()
252 PetscInt pStart, pEnd, nfields, ncdof, nfcdof, p, f, n1, n2; in PetscSectionCompare() local
270 PetscCall(PetscSectionGetChart(s1, &pStart, &pEnd)); in PetscSectionCompare()
272 if (pStart != n1 || pEnd != n2) goto not_congruent; in PetscSectionCompare()
281 for (p = pStart; p < pEnd; ++p) { in PetscSectionCompare()
309 for (p = pStart; p < pEnd; ++p) { in PetscSectionCompare()
633 PetscErrorCode PetscSectionGetChart(PetscSection s, PetscInt *pStart, PetscInt *pEnd) in PetscSectionGetChart() argument
637 if (pStart) *pStart = s->pStart; in PetscSectionGetChart()
666 PetscErrorCode PetscSectionSetChart(PetscSection s, PetscInt pStart, PetscInt pEnd) in PetscSectionSetChart() argument
672 …>= pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Chart pEnd %" PetscInt_FMT " cannot be smal… in PetscSectionSetChart()
673 if (pStart == s->pStart && pEnd == s->pEnd) PetscFunctionReturn(PETSC_SUCCESS); in PetscSectionSetChart()
680 s->pStart = pStart; in PetscSectionSetChart()
682 PetscCall(PetscMalloc2(pEnd - pStart, &s->atlasDof, pEnd - pStart, &s->atlasOff)); in PetscSectionSetChart()
683 PetscCall(PetscArrayzero(s->atlasDof, pEnd - pStart)); in PetscSectionSetChart()
684 for (f = 0; f < s->numFields; ++f) PetscCall(PetscSectionSetChart(s->field[f], pStart, pEnd)); in PetscSectionSetChart()
946 …pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_F… in PetscSectionGetDof()
947 *numDof = s->atlasDof[point - s->pStart]; in PetscSectionGetDof()
972 …pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_F… in PetscSectionSetDof()
973 s->atlasDof[point - s->pStart] = numDof; in PetscSectionSetDof()
999 …pStart && point < s->pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_F… in PetscSectionAddDof()
1001 s->atlasDof[point - s->pStart] += numDof; in PetscSectionAddDof()
1271 const PetscInt last = (s->bc->pEnd - s->bc->pStart) - 1; in PetscSectionSetUpBC()
1313 for (PetscInt p = 0; p < s->pEnd - s->pStart; ++p) { in PetscSectionSetUp()
1332 for (PetscInt p = 0; p < s->pEnd - s->pStart; ++p) { in PetscSectionSetUp()
1340 for (PetscInt p = 0; p < s->pEnd - s->pStart; ++p) s->atlasOff[p] = -1; in PetscSectionSetUp()
1388 for (p = 0; p < s->pEnd - s->pStart; ++p) s->maxDof = PetscMax(s->maxDof, s->atlasDof[p]); in PetscSectionGetMaxDof()
1416 for (PetscInt p = 0; p < s->pEnd - s->pStart; ++p) n += s->atlasDof[p] > 0 ? s->atlasDof[p] : 0; in PetscSectionGetStorageSize()
1443 for (PetscInt p = 0; p < s->pEnd - s->pStart; ++p) { in PetscSectionGetConstrainedStorageSize()
1480 PetscInt pStart, pEnd, p, dof, cdof, off, globalOff = 0, nroots, nlocal, maxleaf; in PetscSectionCreateGlobalSection() local
1495 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionCreateGlobalSection()
1496 PetscCall(PetscSectionSetChart(gs, pStart, pEnd)); in PetscSectionCreateGlobalSection()
1509 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1517 …ices, gs->bc->atlasOff[gs->bc->pEnd - gs->bc->pStart - 1] + gs->bc->atlasDof[gs->bc->pEnd - gs->bc… in PetscSectionCreateGlobalSection()
1522 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1524 gs->atlasDof[p - pStart] = recv[p]; in PetscSectionCreateGlobalSection()
1532 for (p = 0, off = 0; p < pEnd - pStart; ++p) { in PetscSectionCreateGlobalSection()
1543 for (p = pStart, off = 0; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1544 gs->atlasOff[p - pStart] += globalOff; in PetscSectionCreateGlobalSection()
1545 if (neg) neg[p] = -(gs->atlasOff[p - pStart] + 1); in PetscSectionCreateGlobalSection()
1553 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1554 if (recv[p] < 0) gs->atlasOff[p - pStart] = recv[p]; in PetscSectionCreateGlobalSection()
1568 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1584 …, gfs->bc->atlasOff[gfs->bc->pEnd - gfs->bc->pStart - 1] + gfs->bc->atlasDof[gfs->bc->pEnd - gfs->… in PetscSectionCreateGlobalSection()
1625 PetscInt pStart, pEnd, p, e, dof, cdof, globalOff = 0, nroots; in PetscSectionCreateGlobalSectionCensored() local
1633 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionCreateGlobalSectionCensored()
1634 PetscCall(PetscSectionSetChart(*gsection, pStart, pEnd)); in PetscSectionCreateGlobalSectionCensored()
1637 …= pEnd - pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "PetscSF nroots %" PetscInt_FMT " < %" PetscI… in PetscSectionCreateGlobalSectionCensored()
1639 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionCensored()
1642 tmpOff = &(*gsection)->atlasDof[-pStart]; in PetscSectionCreateGlobalSectionCensored()
1646 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSectionCensored()
1664 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionCensored()
1665 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSectionCensored()
1666 if (tmpOff[p] < 0) (*gsection)->atlasDof[p - pStart] = tmpOff[p]; in PetscSectionCreateGlobalSectionCensored()
1672 for (p = 0, off = 0; p < pEnd - pStart; ++p) { in PetscSectionCreateGlobalSectionCensored()
1681 for (p = 0, off = 0; p < pEnd - pStart; ++p) { in PetscSectionCreateGlobalSectionCensored()
1683 if (neg) neg[p + pStart] = -((*gsection)->atlasOff[p] + 1); in PetscSectionCreateGlobalSectionCensored()
1688 if (nroots == pEnd - pStart) tmpOff = &(*gsection)->atlasOff[-pStart]; in PetscSectionCreateGlobalSectionCensored()
1691 if (nroots > pEnd - pStart) { in PetscSectionCreateGlobalSectionCensored()
1692 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSectionCensored()
1693 if (tmpOff[p] < 0) (*gsection)->atlasOff[p - pStart] = tmpOff[p]; in PetscSectionCreateGlobalSectionCensored()
1697 if (nroots >= 0 && nroots > pEnd - pStart) PetscCall(PetscFree(tmpOff)); in PetscSectionCreateGlobalSectionCensored()
1737 PetscInt pStart, pEnd, p, localSize = 0; in PetscSectionGetPointLayout() local
1740 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionGetPointLayout()
1741 for (p = pStart; p < pEnd; ++p) { in PetscSectionGetPointLayout()
1784 PetscInt pStart, pEnd, p, localSize = 0; in PetscSectionGetValueLayout() local
1789 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionGetValueLayout()
1790 for (p = pStart; p < pEnd; ++p) { in PetscSectionGetValueLayout()
1832 …pStart) && !(point >= s->pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" Petsc… in PetscSectionGetOffset()
1833 *offset = s->atlasOff[point - s->pStart]; in PetscSectionGetOffset()
1858 …pStart) && !(point >= s->pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" Petsc… in PetscSectionSetOffset()
1859 s->atlasOff[point - s->pStart] = offset; in PetscSectionSetOffset()
1983 PetscInt os = 0, oe = 0, pStart, pEnd, p; in PetscSectionGetOffsetRange() local
1991 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionGetOffsetRange()
1992 for (p = 0; p < pEnd - pStart; ++p) { in PetscSectionGetOffsetRange()
2029 PetscInt nF, f, c, pStart, pEnd, p, maxCdof = 0; in PetscSectionCreateSubsection() local
2056 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionCreateSubsection()
2057 PetscCall(PetscSectionSetChart(*subs, pStart, pEnd)); in PetscSectionCreateSubsection()
2058 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateSubsection()
2077 PetscCall(PetscBTCreate(pEnd - pStart, &subbst)); in PetscSectionCreateSubsection()
2078 PetscCall(PetscBTCopy(subbst, pEnd - pStart, bst)); in PetscSectionCreateSubsection()
2086 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateSubsection()
2137 PetscInt Nf, pStart, pEnd; in PetscSectionCreateComponentSubsection() local
2157 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionCreateComponentSubsection()
2158 PetscCall(PetscSectionSetChart(*subs, pStart, pEnd)); in PetscSectionCreateComponentSubsection()
2159 for (PetscInt p = pStart; p < pEnd; ++p) { in PetscSectionCreateComponentSubsection()
2198 PetscInt Nf = 0, f, pStart = PETSC_INT_MAX, pEnd = 0, p, maxCdof = 0, i; in PetscSectionCreateSupersection() local
2207 pStart = PetscMin(pStart, pStarti); in PetscSectionCreateSupersection()
2231 PetscCall(PetscSectionSetChart(*supers, pStart, pEnd)); in PetscSectionCreateSupersection()
2232 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateSupersection()
2260 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateSupersection()
2298 PetscInt numFields, f, c, numSubpoints = 0, pStart, pEnd, p, spStart, spEnd, subp; in PetscSectionCreateSubplexSection_Private() local
2325 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionCreateSubplexSection_Private()
2343 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateSubplexSection_Private()
2363 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateSubplexSection_Private()
2468 for (p = 0; p < s->pEnd - s->pStart; ++p) { in PetscSectionView_ASCII()
2471 …") dof %2" PetscInt_FMT " offset %3" PetscInt_FMT " constrained", p + s->pStart, s->atlasDof[p], s… in PetscSectionView_ASCII()
2477 …scInt_FMT ") dof %2" PetscInt_FMT " offset %3" PetscInt_FMT "\n", p + s->pStart, s->atlasDof[p], s… in PetscSectionView_ASCII()
2675 for (p = 0; p < s->pEnd - s->pStart; ++p) { in PetscSectionArrayView_ASCII_Internal()
2679 …" PetscInt_FMT ") dof %2" PetscInt_FMT " offset %3" PetscInt_FMT, p + s->pStart, s->atlasDof[p], s… in PetscSectionArrayView_ASCII_Internal()
2685 …" PetscInt_FMT ") dof %2" PetscInt_FMT " offset %3" PetscInt_FMT, p + s->pStart, s->atlasDof[p], s… in PetscSectionArrayView_ASCII_Internal()
2804 s->pStart = -1; in PetscSectionReset()
2841 const PetscInt p = point - s->pStart; in VecIntGetValuesSection_Private()
2852 const PetscInt p = point - s->pStart; in VecIntSetValuesSection_Private()
3094 PetscInt numFields, f, c, numPoints, pStart, pEnd, p; in PetscSectionPermute() local
3118 PetscCall(PetscSectionGetChart(s, &pStart, &pEnd)); in PetscSectionPermute()
3119 PetscCall(PetscSectionSetChart(sNew, pStart, pEnd)); in PetscSectionPermute()
3121 for (p = pStart; p < pEnd; ++p) { in PetscSectionPermute()
3136 for (p = pStart; p < pEnd; ++p) { in PetscSectionPermute()
4031 PetscInt i, n, npoints, pStart, pEnd; in PetscSectionExtractDofsFromArray() local
4043 PetscCall(PetscSectionGetChart(origSection, &pStart, &pEnd)); in PetscSectionExtractDofsFromArray()
4047 …PetscCheck(points_[i] >= pStart && points_[i] < pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "… in PetscSectionExtractDofsFromArray()