Lines Matching refs:off

17   PetscInt  d, c, off = 0;  in DMPlexCreateCellTypeOrder_Internal()  local
27 off = 4 - dim; in DMPlexCreateCellTypeOrder_Internal()
28 dimOrder[off++] = 0; in DMPlexCreateCellTypeOrder_Internal()
29 for (d = dim - 1; d > 0; --d) dimOrder[off++] = d; in DMPlexCreateCellTypeOrder_Internal()
32 off = 0; in DMPlexCreateCellTypeOrder_Internal()
36 if (DMPolytopeTypeGetDim((DMPolytopeType)c) == dimOrder[d]) ctO[off++] = c; in DMPlexCreateCellTypeOrder_Internal()
40 if (c == DM_POLYTOPE_UNKNOWN_CELL || c == DM_POLYTOPE_UNKNOWN_FACE) ctO[off++] = c; in DMPlexCreateCellTypeOrder_Internal()
42 ctO[off++] = DM_NUM_POLYTOPES; in DMPlexCreateCellTypeOrder_Internal()
43 …PetscCheck(off == DM_NUM_POLYTOPES + 1, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Invalid offset %" PetscI… in DMPlexCreateCellTypeOrder_Internal()
446 PetscInt c, cN, *off; in DMPlexTransformCreateOffset_Internal() local
459 PetscCall(PetscCalloc1(Nrt * DM_NUM_POLYTOPES, &off)); in DMPlexTransformCreateOffset_Internal()
482 off[r * DM_NUM_POLYTOPES + ctNew] = -1; in DMPlexTransformCreateOffset_Internal()
485 off[r * DM_NUM_POLYTOPES + ctNew] = 0; in DMPlexTransformCreateOffset_Internal()
504 if (n == Nct) off[r * DM_NUM_POLYTOPES + ctNew] = -1; in DMPlexTransformCreateOffset_Internal()
512 off[r * DM_NUM_POLYTOPES + ctNew] += sn * rsize[n]; in DMPlexTransformCreateOffset_Internal()
521 PetscCall(PetscCalloc1(DM_NUM_POLYTOPES * DM_NUM_POLYTOPES, &off)); in DMPlexTransformCreateOffset_Internal()
531 off[ct * DM_NUM_POLYTOPES + ctNew] = -1; in DMPlexTransformCreateOffset_Internal()
534 off[ct * DM_NUM_POLYTOPES + ctNew] = 0; in DMPlexTransformCreateOffset_Internal()
543 if (n == Nct) off[ct * DM_NUM_POLYTOPES + ctNew] = -1; in DMPlexTransformCreateOffset_Internal()
547 …if (rct[n] == ctNew) off[ct * DM_NUM_POLYTOPES + ctNew] += (ctStart[ictn] - ctStart[ict]) * rsize[… in DMPlexTransformCreateOffset_Internal()
552 *offset = off; in DMPlexTransformCreateOffset_Internal()
1004 PetscInt rt, Nct, n, off, rp; in DMPlexTransformGetTargetPoint() local
1021 off = tr->offset[cind * DM_NUM_POLYTOPES + ctNew]; in DMPlexTransformGetTargetPoint()
1022 …PetscCheck(off >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cell type %s (%" PetscInt_FMT ") of po… in DMPlexTransformGetTargetPoint()
1023 newp += off; in DMPlexTransformGetTargetPoint()
1078 const PetscInt off = tr->offset[r * DM_NUM_POLYTOPES + ctN]; in DMPlexTransformGetSourcePoint() local
1080 if (tr->ctStartNew[ctN] + off > pNew) continue; in DMPlexTransformGetSourcePoint()
1083 if (off > offset) { in DMPlexTransformGetSourcePoint()
1085 offset = off; in DMPlexTransformGetSourcePoint()
1102 const PetscInt off = tr->offset[ctTmp * DM_NUM_POLYTOPES + ctN]; in DMPlexTransformGetSourcePoint() local
1104 if (tr->ctStartNew[ctN] + off > pNew) continue; in DMPlexTransformGetSourcePoint()
1107 if (off > offset) { in DMPlexTransformGetSourcePoint()
1109 offset = off; in DMPlexTransformGetSourcePoint()
1730 PetscInt v, dE = trdim, d, off = 0; in DMPlexTransformCreateCellVertices_Internal() local
1735 …++d) PetscCall(PetscPrintf(PETSC_COMM_SELF, "%g ", (double)PetscRealPart(tr->trVerts[ct][off++]))); in DMPlexTransformCreateCellVertices_Internal()
2060 PetscInt Nct, n, r, off; in DMPlexTransformCreateSF() local
2063 PetscCall(PetscSectionGetOffset(s, p, &off)); in DMPlexTransformCreateSF()
2069 rootPointsNew[off + m] = pNew; in DMPlexTransformCreateSF()
2083 PetscInt Nct, n, r, q, off; in DMPlexTransformCreateSF() local
2085 PetscCall(PetscSectionGetOffset(s, p, &off)); in DMPlexTransformCreateSF()
2092 remotePointsNew[m].index = rootPointsNew[off + q]; in DMPlexTransformCreateSF()
2319 PetscInt vNew, off; in DMPlexTransformSetCoordinates() local
2322 PetscCall(PetscSectionGetOffset(coordSectionNew, vNew, &off)); in DMPlexTransformSetCoordinates()
2324 PetscCall(DMSnapToGeomModel(dm, p, dE, vcoords, &coordsNew[off])); in DMPlexTransformSetCoordinates()