Lines Matching refs:offsets
49 PetscInt *cellproc, *offsets, cells[3] = {1, 1, 1}, pcells[3] = {1, 1, 1}; in PetscPartitionerPartition_Simple_Grid() local
80 PetscCall(PetscCalloc1(nparts, &offsets)); in PetscPartitionerPartition_Simple_Grid()
81 for (np = 0; np < nparts; ++np) PetscCall(PetscSectionGetOffset(partSection, np, &offsets[np])); in PetscPartitionerPartition_Simple_Grid()
101 cellproc[offsets[pid]++] = cid; in PetscPartitionerPartition_Simple_Grid()
111 …offsets[np] - offsets[np - 1] == numVertices / nparts, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Off… in PetscPartitionerPartition_Simple_Grid()
112 PetscCall(PetscFree(offsets)); in PetscPartitionerPartition_Simple_Grid()
186 PetscInt nvGlobal, *offsets, myFirst, myLast; in PetscPartitionerPartition_Simple() local
188 PetscCall(PetscMalloc1(size + 1, &offsets)); in PetscPartitionerPartition_Simple()
189 offsets[0] = 0; in PetscPartitionerPartition_Simple()
190 PetscCallMPI(MPI_Allgather(&numVertices, 1, MPIU_INT, &offsets[1], 1, MPIU_INT, comm)); in PetscPartitionerPartition_Simple()
191 for (np = 2; np <= size; np++) offsets[np] += offsets[np - 1]; in PetscPartitionerPartition_Simple()
192 nvGlobal = offsets[size]; in PetscPartitionerPartition_Simple()
194 myFirst = offsets[rank]; in PetscPartitionerPartition_Simple()
195 myLast = offsets[rank + 1] - 1; in PetscPartitionerPartition_Simple()
196 PetscCall(PetscFree(offsets)); in PetscPartitionerPartition_Simple()