Lines Matching refs:nfineparts
21 PetscInt nfineparts; /* number of fine parts on each coarse subdomain */
72 PetscCheck(hpart->nfineparts, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, " must set number of small subdomains for each big subdomain ");
80 hpart->nfineparts = 1;
88 hpart->ncoarseparts = part->n / hpart->nfineparts;
90 if (part->n % hpart->nfineparts != 0) hpart->ncoarseparts++;
92 part->n = hpart->ncoarseparts * hpart->nfineparts;
99 if (part->n % hpart->nfineparts != 0) offsets[1] = part->n % hpart->nfineparts;
100 else offsets[1] = hpart->nfineparts;
105 offsets[i] = hpart->nfineparts;
361 PetscCall(PetscViewerASCIIPrintf(viewer, " Number of fine parts: %" PetscInt_FMT "\n", hpart->nfineparts));
403 PetscErrorCode MatPartitioningHierarchicalSetNfineparts(MatPartitioning part, PetscInt nfineparts)
408 hpart->nfineparts = nfineparts;
431 PetscCall(PetscOptionsInt("-mat_partitioning_hierarchical_nfineparts", "number of fine parts", NULL, hpart->nfineparts, &hpart->nfineparts, &flag));
539 hpart->nfineparts = 1; /* we do not further partition coarse partition any more by default */