Lines Matching refs:np

50   PetscInt                 Np = 1, Nr, np, nk, nj, ni, pk, pj, pi, ck, cj, ci, i;  in PetscPartitionerPartition_Simple_Grid()  local
78 …for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, numVertices / nparts… in PetscPartitionerPartition_Simple_Grid()
81 for (np = 0; np < nparts; ++np) PetscCall(PetscSectionGetOffset(partSection, np, &offsets[np])); in PetscPartitionerPartition_Simple_Grid()
111np = 1; np < nparts; ++np) PetscCheck(offsets[np] - offsets[np - 1] == numVertices / nparts, PETSC… in PetscPartitionerPartition_Simple_Grid()
121 PetscInt np, *tpwgts = NULL, sumw = 0, numVerticesGlobal = 0; in PetscPartitionerPartition_Simple() local
135 for (np = 0; np < nparts; ++np) { in PetscPartitionerPartition_Simple()
136 PetscCall(PetscSectionGetDof(targetSection, np, &tpwgts[np])); in PetscPartitionerPartition_Simple()
137 sumw += tpwgts[np]; in PetscPartitionerPartition_Simple()
141 for (np = 0; np < nparts; ++np) tpwgts[np] = (tpwgts[np] * numVerticesGlobal) / sumw; in PetscPartitionerPartition_Simple()
142 for (np = 0, m = -1, mp = 0, sumw = 0; np < nparts; ++np) { in PetscPartitionerPartition_Simple()
143 if (m < tpwgts[np]) { in PetscPartitionerPartition_Simple()
144 m = tpwgts[np]; in PetscPartitionerPartition_Simple()
145 mp = np; in PetscPartitionerPartition_Simple()
147 sumw += tpwgts[np]; in PetscPartitionerPartition_Simple()
157 for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, tpwgts[np])); in PetscPartitionerPartition_Simple()
159 …for (np = 0; np < nparts; ++np) PetscCall(PetscSectionSetDof(partSection, np, numVertices / nparts… in PetscPartitionerPartition_Simple()
172 for (np = 0, st = 0; np < nparts; ++np) { in PetscPartitionerPartition_Simple()
173 if (rank == np || (rank == size - 1 && size < nparts && np >= size)) { in PetscPartitionerPartition_Simple()
174 for (j = 0; j < tpwgts[np]; j++) PetscCall(VecSetValue(v, st + j, np, INSERT_VALUES)); in PetscPartitionerPartition_Simple()
176 st += tpwgts[np]; in PetscPartitionerPartition_Simple()
191 for (np = 2; np <= size; np++) offsets[np] += offsets[np - 1]; in PetscPartitionerPartition_Simple()
223 for (np = firstPart; np <= lastPart; np++) { in PetscPartitionerPartition_Simple()
224 PetscInt PartStart = np * (nvGlobal / nparts) + PetscMin(nvGlobal % nparts, np); in PetscPartitionerPartition_Simple()
225 PetscInt PartEnd = (np + 1) * (nvGlobal / nparts) + PetscMin(nvGlobal % nparts, np + 1); in PetscPartitionerPartition_Simple()
229 PetscCall(PetscSectionSetDof(partSection, np, PartEnd - PartStart)); in PetscPartitionerPartition_Simple()