Lines Matching refs:pEnd

45   (*s)->pEnd                = -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()
147 for (p = pStart; p < pEnd; ++p) { 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
638 if (pEnd) *pEnd = s->pEnd; in PetscSectionGetChart()
666 PetscErrorCode PetscSectionSetChart(PetscSection s, PetscInt pStart, PetscInt pEnd) in PetscSectionSetChart() argument
672 …ck(pEnd >= pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Chart pEnd %" PetscInt_FMT " cannot… in PetscSectionSetChart()
673 if (pStart == s->pStart && pEnd == s->pEnd) PetscFunctionReturn(PETSC_SUCCESS); in PetscSectionSetChart()
681 s->pEnd = pEnd; 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()
946pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_FMT " should be in [%"… in PetscSectionGetDof()
972pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_FMT " should be in [%"… in PetscSectionSetDof()
999pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_FMT " should be in [%"… 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()
1503 …PetscCheck(nroots >= pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "SF roots %" PetscInt_FMT " < pEnd … in PetscSectionCreateGlobalSection()
1509 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1517 …ndices, s->bcIndices, gs->bc->atlasOff[gs->bc->pEnd - gs->bc->pStart - 1] + gs->bc->atlasDof[gs->b… in PetscSectionCreateGlobalSection()
1522 for (p = pStart; p < pEnd; ++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()
1553 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1568 for (p = pStart; p < pEnd; ++p) { in PetscSectionCreateGlobalSection()
1584 …eld[f]->bcIndices, gfs->bc->atlasOff[gfs->bc->pEnd - gfs->bc->pStart - 1] + gfs->bc->atlasDof[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 …nroots >= pEnd - pStart, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "PetscSF nroots %" PetscInt_FMT " < %… in PetscSectionCreateGlobalSectionCensored()
1639 if (nroots > pEnd - 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()
1672 for (p = 0, off = 0; p < pEnd - pStart; ++p) { in PetscSectionCreateGlobalSectionCensored()
1681 for (p = 0, off = 0; p < pEnd - pStart; ++p) { 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()
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()
1832pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_FMT " should be in [%… in PetscSectionGetOffset()
1858pEnd), PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Section point %" PetscInt_FMT " should be in [%… 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
2208 pEnd = PetscMax(pEnd, pEndi); 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()
2675 for (p = 0; p < s->pEnd - s->pStart; ++p) { in PetscSectionArrayView_ASCII_Internal()
2805 s->pEnd = -1; in PetscSectionReset()
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()
3120 … >= pEnd, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "Permutation size %" PetscInt_FMT " is less than lar… 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()