Lines Matching refs:off
83 PetscInt adjSize = PETSC_DETERMINE, a, off = vOffsets[v]; in DMPlexCreatePartitionerGraph_Overlap() local
90 …if (point != c && cStart <= point && point < cEnd) vAdj[off++] = DMPlex_GlobalID(cellNum[point - c… in DMPlexCreatePartitionerGraph_Overlap()
92 …PetscCheck(off == vOffsets[v + 1], PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Offsets %" PetscInt_FMT … in DMPlexCreatePartitionerGraph_Overlap()
94 PetscCall(PetscSortInt(off - vOffsets[v], &vAdj[vOffsets[v]])); in DMPlexCreatePartitionerGraph_Overlap()
549 PetscInt *off, *adj; in DMPlexCreateNeighborCSR() local
570 PetscCall(PetscCalloc1(numCells + 1, &off)); in DMPlexCreateNeighborCSR()
583 ++off[support[0] - cStart + 1]; in DMPlexCreateNeighborCSR()
584 ++off[support[1] - cStart + 1]; in DMPlexCreateNeighborCSR()
589 for (c = 1; c <= numCells; ++c) off[c] += off[c - 1]; in DMPlexCreateNeighborCSR()
593 PetscCall(PetscMalloc1(off[numCells], &adj)); in DMPlexCreateNeighborCSR()
595 PetscCall(PetscArraycpy(tmp, off, numCells + 1)); in DMPlexCreateNeighborCSR()
612 …t(tmp[c] == off[c + 1], PETSC_COMM_SELF, PETSC_ERR_PLIB, "Offset %" PetscInt_FMT " != %" PetscInt_… in DMPlexCreateNeighborCSR()
616 if (offsets) *offsets = off; in DMPlexCreateNeighborCSR()
640 PetscCall(PetscCalloc1(numCells + 1, &off)); in DMPlexCreateNeighborCSR()
670 if (found) ++off[cell - cStart + 1]; in DMPlexCreateNeighborCSR()
674 for (cell = 1; cell <= numCells; ++cell) off[cell] += off[cell - 1]; in DMPlexCreateNeighborCSR()
677 PetscCall(PetscMalloc1(off[numCells], &adj)); in DMPlexCreateNeighborCSR()
709 adj[off[cell - cStart] + cellOffset] = neighborCells[n]; in DMPlexCreateNeighborCSR()
717 if (offsets) *offsets = off; in DMPlexCreateNeighborCSR()
1055 PetscInt nelems, *elems, off = 0, p; in DMPlexClosurePoints_Private() local
1080 PetscCall(PetscHSetIGetElems(ht, &off, elems)); in DMPlexClosurePoints_Private()
1251 PetscInt p, n, numNeighbors, numPoints, dof, off, rootSize, l, nleaves, leafSize; in DMPlexPartitionLabelInvert() local
1285 PetscCall(PetscSectionGetOffset(rootSection, neighbors[n], &off)); in DMPlexPartitionLabelInvert()
1293 rootPoints[off + p] = remote[l]; in DMPlexPartitionLabelInvert()
1295 rootPoints[off + p].index = points[p]; in DMPlexPartitionLabelInvert()
1296 rootPoints[off + p].rank = rank; in DMPlexPartitionLabelInvert()
1312 PetscCall(PetscSectionGetOffset(rootSection, neighbors[n], &off)); in DMPlexPartitionLabelInvert()
1318 if (off > PETSC_MPI_INT_MAX) { in DMPlexPartitionLabelInvert()
1324 PetscCall(PetscMPIIntCast(off, &sdispls[neighbors[n]])); in DMPlexPartitionLabelInvert()