Lines Matching refs:psubcomm

15   PetscSubcomm       psubcomm;  member
47 if (!red->psubcomm) { in PCView_Redundant()
52 if (!red->psubcomm->color) { /* only view first redundant pc */ in PCView_Redundant()
83 if (!red->psubcomm) { /* create red->psubcomm, new ksp and pc over subcomm */ in PCSetUp_Redundant()
87 subcomm = PetscSubcommChild(red->psubcomm); in PCSetUp_Redundant()
91 …PetscCall(MatCreateRedundantMatrix(pc->pmat, red->psubcomm->n, subcomm, MAT_INITIAL_MATRIX, &red->… in PCSetUp_Redundant()
120 …PetscCall(VecCreateMPI(PetscSubcommContiguousParent(red->psubcomm), mloc_sub, PETSC_DECIDE, &red->… in PCSetUp_Redundant()
121 …PetscCall(VecCreateMPIWithArray(PetscSubcommContiguousParent(red->psubcomm), 1, mloc_sub, PETSC_DE… in PCSetUp_Redundant()
132 PetscCall(PetscMalloc2(red->psubcomm->n * mlocal, &idx1, red->psubcomm->n * mlocal, &idx2)); in PCSetUp_Redundant()
134 for (k = 0; k < red->psubcomm->n; k++) { in PCSetUp_Redundant()
140 PetscCall(ISCreateGeneral(comm, red->psubcomm->n * mlocal, idx1, PETSC_COPY_VALUES, &is1)); in PCSetUp_Redundant()
141 PetscCall(ISCreateGeneral(comm, red->psubcomm->n * mlocal, idx2, PETSC_COPY_VALUES, &is2)); in PCSetUp_Redundant()
147 PetscCall(ISCreateStride(comm, mlocal, mstart + red->psubcomm->color * M, 1, &is1)); in PCSetUp_Redundant()
169 …PetscCall(MatCreateRedundantMatrix(pc->pmat, red->psubcomm->n, PetscSubcommChild(red->psubcomm), r… in PCSetUp_Redundant()
281 PetscCall(PetscSubcommDestroy(&red->psubcomm)); in PCDestroy_Redundant()
384 if (!red->psubcomm) { in PCRedundantGetKSP_Redundant()
388 PetscCall(PetscSubcommCreate(comm, &red->psubcomm)); in PCRedundantGetKSP_Redundant()
389 PetscCall(PetscSubcommSetNumber(red->psubcomm, red->nsubcomm)); in PCRedundantGetKSP_Redundant()
390 PetscCall(PetscSubcommSetType(red->psubcomm, PETSC_SUBCOMM_CONTIGUOUS)); in PCRedundantGetKSP_Redundant()
392 PetscCall(PetscSubcommSetOptionsPrefix(red->psubcomm, prefix)); in PCRedundantGetKSP_Redundant()
393 PetscCall(PetscSubcommSetFromOptions(red->psubcomm)); in PCRedundantGetKSP_Redundant()
396 subcomm = PetscSubcommChild(red->psubcomm); in PCRedundantGetKSP_Redundant()