Lines Matching refs:sizes

54   PetscInt    sizes[16], points[1024];  in PetscPartitionerSetFromOptions_Shell()  local
65 …e size of each partition on rank 0", "PetscPartitionerShellSetPartition", sizes, &Npart, &flgSizes… in PetscPartitionerSetFromOptions_Shell()
71 for (PetscInt i = 0; i < Npart; ++i) Np += sizes[i]; in PetscPartitionerSetFromOptions_Shell()
73 if (!rank) PetscCall(PetscPartitionerShellSetPartition(part, Npart, sizes, points)); in PetscPartitionerSetFromOptions_Shell()
75 PetscCall(PetscArrayzero(sizes, Npart)); in PetscPartitionerSetFromOptions_Shell()
76 PetscCall(PetscPartitionerShellSetPartition(part, Npart, sizes, points)); in PetscPartitionerSetFromOptions_Shell()
91 PetscInt *sizes, *points, v, p; in PetscPartitionerPartition_Shell() local
98 PetscCall(PetscCalloc2(nparts, &sizes, numVertices, &points)); in PetscPartitionerPartition_Shell()
100 …for (p = 0; p < nparts; ++p) sizes[p] = numVertices / nparts + (PetscInt)(p < numVertices % nparts… in PetscPartitionerPartition_Shell()
113 PetscCall(PetscPartitionerShellSetPartition(part, nparts, sizes, points)); in PetscPartitionerPartition_Shell()
114 PetscCall(PetscFree2(sizes, points)); in PetscPartitionerPartition_Shell()
182 …nerShellSetPartition(PetscPartitioner part, PetscInt size, const PetscInt sizes[], const PetscInt … in PetscPartitionerShellSetPartition() argument
189 if (sizes) PetscAssertPointer(sizes, 3); in PetscPartitionerShellSetPartition()
195 if (sizes) { in PetscPartitionerShellSetPartition()
196 … for (proc = 0; proc < size; ++proc) PetscCall(PetscSectionSetDof(p->section, proc, sizes[proc])); in PetscPartitionerShellSetPartition()