Lines Matching refs:n_local_true

54 …zedPrintf(viewer, "  [%d] number of local blocks = %" PetscInt_FMT "\n", rank, osm->n_local_true));  in PCView_ASM()
60 for (i = 0; i < osm->n_local_true; i++) { in PCView_ASM()
98 if (i < osm->n_local_true) { in PCASMPrintSubdomains()
172 if (osm->n_local_true == PETSC_DECIDE) { in PCSetUp_ASM()
194 if (osm->n_local_true == PETSC_DECIDE) { in PCSetUp_ASM()
196 osm->n_local_true = 1; in PCSetUp_ASM()
205 inwork.max = osm->n_local_true; in PCSetUp_ASM()
206 inwork.sum = osm->n_local_true; in PCSetUp_ASM()
218 PetscCall(PCASMCreateSubdomains(pc->pmat, osm->n_local_true, &osm->is)); in PCSetUp_ASM()
220 if (osm->n_local_true > 1 && !osm->is_local) { in PCSetUp_ASM()
221 PetscCall(PetscMalloc1(osm->n_local_true, &osm->is_local)); in PCSetUp_ASM()
222 for (i = 0; i < osm->n_local_true; i++) { in PCSetUp_ASM()
235 PetscCall(MatIncreaseOverlap(pc->pmat, osm->n_local_true, osm->is, osm->overlap)); in PCSetUp_ASM()
238 for (i = 0; i < osm->n_local_true; i++) { in PCSetUp_ASM()
248 PetscCall(PetscMalloc1(osm->n_local_true, &osm->ksp)); in PCSetUp_ASM()
250 for (i = 0; i < osm->n_local_true; i++) { in PCSetUp_ASM()
270 PetscCall(ISConcatenate(PETSC_COMM_SELF, osm->n_local_true, osm->is, &osm->lis)); in PCSetUp_ASM()
280 PetscCall(MatGetNullSpaces(osm->n_local_true, osm->pmat, &nullsp)); in PCSetUp_ASM()
281 PetscCall(MatDestroyMatrices(osm->n_local_true, &osm->pmat)); in PCSetUp_ASM()
288 PetscCall(MatGetNullSpaces(osm->n_local_true, osm->pmat, &nullsp)); in PCSetUp_ASM()
289 if (osm->n_local_true > 0) PetscCall(MatDestroySubMatrices(osm->n_local_true, &osm->pmat)); in PCSetUp_ASM()
296 PetscCall(MatCreateSubMatrices(pc->pmat, osm->n_local_true, osm->is, osm->is, scall, &osm->pmat)); in PCSetUp_ASM()
299 …for (i = 0; i < osm->n_local_true; i++) PetscCall(PetscObjectSetOptionsPrefix((PetscObject)osm->pm… in PCSetUp_ASM()
300 if (nullsp) PetscCall(MatRestoreNullSpaces(osm->n_local_true, osm->pmat, &nullsp)); in PCSetUp_ASM()
305 …for (i = 0; i < osm->n_local_true; i++) PetscCall(MatConvert(osm->pmat[i], osm->sub_mat_type, MAT_… in PCSetUp_ASM()
314 …PetscCheck(!osm->is_local || osm->n_local_true == 1 || (osm->type != PC_ASM_INTERPOLATE && osm->ty… in PCSetUp_ASM()
315 …&& osm->loctype == PC_COMPOSITE_ADDITIVE) PetscCall(PetscMalloc1(osm->n_local_true, &osm->lprolong… in PCSetUp_ASM()
316 PetscCall(PetscMalloc1(osm->n_local_true, &osm->lrestriction)); in PCSetUp_ASM()
317 PetscCall(PetscMalloc1(osm->n_local_true, &osm->x)); in PCSetUp_ASM()
318 PetscCall(PetscMalloc1(osm->n_local_true, &osm->y)); in PCSetUp_ASM()
330 for (i = 0; i < osm->n_local_true; ++i) { in PCSetUp_ASM()
391 PetscCall(PetscMalloc1(osm->n_local_true, &cis)); in PCSetUp_ASM()
392 for (c = 0; c < osm->n_local_true; ++c) cis[c] = osm->lis; in PCSetUp_ASM()
393 PetscCall(MatCreateSubMatrices(pc->pmat, osm->n_local_true, osm->is, cis, scall, &osm->lmats)); in PCSetUp_ASM()
399 …PetscCall(PCModifySubMatrices(pc, osm->n_local_true, osm->is, osm->is, osm->pmat, pc->modifysubmat… in PCSetUp_ASM()
405 for (i = 0; i < osm->n_local_true; i++) { in PCSetUp_ASM()
420 for (i = 0; i < osm->n_local_true; i++) { in PCSetUpOnBlocks_ASM()
431 PetscInt i, n_local_true = osm->n_local_true; in PCApply_ASM() local
460 for (i = 0; i < n_local_true; ++i) { in PCApply_ASM()
475 if (i < n_local_true - 1) { in PCApply_ASM()
502 …PetscCheck(osm->n_local_true <= 1, PetscObjectComm((PetscObject)pc), PETSC_ERR_SUP, "Not yet imple… in PCMatApply_ASM_Private()
588 PetscInt i, n_local_true = osm->n_local_true; in PCApplyTranspose_ASM() local
592 …PetscCheck(osm->n_local_true <= 1 || osm->loctype == PC_COMPOSITE_ADDITIVE, PetscObjectComm((Petsc… in PCApplyTranspose_ASM()
621 for (i = 0; i < n_local_true; ++i) { in PCApplyTranspose_ASM()
636 if (i < n_local_true - 1) { in PCApplyTranspose_ASM()
655 for (i = 0; i < osm->n_local_true; i++) PetscCall(KSPReset(osm->ksp[i])); in PCReset_ASM()
658 if (osm->n_local_true > 0) PetscCall(MatDestroySubMatrices(osm->n_local_true, &osm->pmat)); in PCReset_ASM()
662 for (i = 0; i < osm->n_local_true; i++) { in PCReset_ASM()
673 PetscCall(PCASMDestroySubdomains(osm->n_local_true, &osm->is, &osm->is_local)); in PCReset_ASM()
677 …if (osm->loctype == PC_COMPOSITE_MULTIPLICATIVE) PetscCall(MatDestroyMatrices(osm->n_local_true, &… in PCReset_ASM()
694 for (i = 0; i < osm->n_local_true; i++) PetscCall(KSPDestroy(&osm->ksp[i])); in PCDestroy_ASM()
730 …locks", "Number of local subdomains", "PCASMSetLocalSubdomains", osm->n_local_true, &blocks, &flg)… in PCSetFromOptions_ASM()
759 …PetscCheck(!pc->setupcalled || (n == osm->n_local_true && !is), PetscObjectComm((PetscObject)pc), … in PCASMSetLocalSubdomains_ASM()
768 PetscCall(PCASMDestroySubdomains(osm->n_local_true, &osm->is, &osm->is_local)); in PCASMSetLocalSubdomains_ASM()
770 if (osm->ksp && osm->n_local_true != n) { in PCASMSetLocalSubdomains_ASM()
771 for (i = 0; i < osm->n_local_true; i++) PetscCall(KSPDestroy(&osm->ksp[i])); in PCASMSetLocalSubdomains_ASM()
775 osm->n_local_true = n; in PCASMSetLocalSubdomains_ASM()
788 PetscCall(PetscMalloc1(osm->n_local_true, &osm->is)); in PCASMSetLocalSubdomains_ASM()
789 for (i = 0; i < osm->n_local_true; i++) { in PCASMSetLocalSubdomains_ASM()
821 …PetscCheck(!pc->setupcalled || n == osm->n_local_true, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, … in PCASMSetTotalSubdomains_ASM()
823 PetscCall(PCASMDestroySubdomains(osm->n_local_true, &osm->is, &osm->is_local)); in PCASMSetTotalSubdomains_ASM()
825 osm->n_local_true = n; in PCASMSetTotalSubdomains_ASM()
895 …PetscCheck(osm->n_local_true >= 1, PetscObjectComm((PetscObject)pc), PETSC_ERR_ORDER, "Need to cal… in PCASMGetSubKSP_ASM()
897 if (n_local) *n_local = osm->n_local_true; in PCASMGetSubKSP_ASM()
899 …PetscCallMPI(MPI_Scan(&osm->n_local_true, first_local, 1, MPIU_INT, MPI_SUM, PetscObjectComm((Pets… in PCASMGetSubKSP_ASM()
900 *first_local -= osm->n_local_true; in PCASMGetSubKSP_ASM()
1293 osm->n_local_true = PETSC_DECIDE; in PCCreate_ASM()
1662 if (n) *n = osm->n_local_true; in PCASMGetLocalSubdomains()
1707 if (n) *n = osm->n_local_true; in PCASMGetLocalSubmatrices()