Home
last modified time | relevance | path

Searched refs:pmat (Results 1 – 25 of 92) sorted by relevance

1234

/petsc/src/ksp/pc/impls/mat/
H A Dpcmat.c25 PetscCall(MatMult(pc->pmat, x, y)); in PCApply_Mat()
28 PetscCall(MatMultTranspose(pc->pmat, x, y)); in PCApply_Mat()
31 PetscCall(MatSolve(pc->pmat, x, y)); in PCApply_Mat()
34 PetscCall(MatSolveTranspose(pc->pmat, x, y)); in PCApply_Mat()
37 PetscCall(MatMultHermitianTranspose(pc->pmat, x, y)); in PCApply_Mat()
52 PetscCall(MatHasOperation(pc->pmat, MATOP_SOLVE, &hassolve)); in PCSetUp_Mat()
67 PetscCall(MatMatMult(pc->pmat, X, MAT_REUSE_MATRIX, PETSC_CURRENT, &Y)); in PCMatApply_Mat()
70 PetscCall(MatTransposeMatMult(pc->pmat, X, MAT_REUSE_MATRIX, PETSC_CURRENT, &Y)); in PCMatApply_Mat()
73 PetscCall(MatMatSolve(pc->pmat, X, Y)); in PCMatApply_Mat()
76 PetscCall(MatMatSolveTranspose(pc->pmat, X, Y)); in PCMatApply_Mat()
[all …]
/petsc/src/ksp/pc/impls/factor/qr/
H A Dqr.c17 PetscCall(MatSetOptionsPrefix(pc->pmat, prefix)); in PCSetUp_QR()
21 PetscCall(MatSetErrorIfFailure(pc->pmat, pc->erroriffailure)); in PCSetUp_QR()
25 PetscCall(MatGetFactorType(pc->pmat, &ftype)); in PCSetUp_QR()
27 PetscCall(MatQRFactor(pc->pmat, dir->col, &((PC_Factor *)dir)->info)); in PCSetUp_QR()
28 PetscCall(MatFactorGetError(pc->pmat, &err)); in PCSetUp_QR()
34 ((PC_Factor *)dir)->fact = pc->pmat; in PCSetUp_QR()
39 …if (!((PC_Factor *)dir)->fact) PetscCall(MatGetFactor(pc->pmat, ((PC_Factor *)dir)->solvertype, MA… in PCSetUp_QR()
40 …PetscCall(MatQRFactorSymbolic(((PC_Factor *)dir)->fact, pc->pmat, dir->col, &((PC_Factor *)dir)->i… in PCSetUp_QR()
44 …PetscCall(MatQRFactorSymbolic(((PC_Factor *)dir)->fact, pc->pmat, dir->col, &((PC_Factor *)dir)->i… in PCSetUp_QR()
56 PetscCall(MatQRFactorNumeric(((PC_Factor *)dir)->fact, pc->pmat, &((PC_Factor *)dir)->info)); in PCSetUp_QR()
[all …]
/petsc/src/ksp/pc/impls/factor/cholesky/
H A Dcholesky.c35 PetscCall(MatSetOptionsPrefixFactor(pc->pmat, prefix)); in PCSetUp_Cholesky()
37 PetscCall(MatSetErrorIfFailure(pc->pmat, pc->erroriffailure)); in PCSetUp_Cholesky()
41 PetscCall(MatGetFactorType(pc->pmat, &ftype)); in PCSetUp_Cholesky()
47 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)dir)->ordering, &dir->row, &dir->col)); in PCSetUp_Cholesky()
51 PetscCall(MatCholeskyFactor(pc->pmat, dir->row, &((PC_Factor *)dir)->info)); in PCSetUp_Cholesky()
52 PetscCall(MatFactorGetError(pc->pmat, &err)); in PCSetUp_Cholesky()
58 ((PC_Factor *)dir)->fact = pc->pmat; in PCSetUp_Cholesky()
73 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)dir)->ordering, &dir->row, &dir->col)); in PCSetUp_Cholesky()
86 PetscCall(MatReorderForNonzeroDiagonal(pc->pmat, tol, dir->row, dir->row)); in PCSetUp_Cholesky()
90 …PetscCall(MatCholeskyFactorSymbolic(((PC_Factor *)dir)->fact, pc->pmat, dir->row, &((PC_Factor *)d… in PCSetUp_Cholesky()
[all …]
/petsc/src/ksp/pc/impls/factor/lu/
H A Dlu.c52 PetscCall(MatSetOptionsPrefixFactor(pc->pmat, prefix)); in PCSetUp_LU()
54 PetscCall(MatSetErrorIfFailure(pc->pmat, pc->erroriffailure)); in PCSetUp_LU()
58 PetscCall(MatGetFactorType(pc->pmat, &ftype)); in PCSetUp_LU()
64 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)dir)->ordering, &dir->row, &dir->col)); in PCSetUp_LU()
65 PetscCall(MatLUFactor(pc->pmat, dir->row, dir->col, &((PC_Factor *)dir)->info)); in PCSetUp_LU()
66 PetscCall(MatFactorGetError(pc->pmat, &err)); in PCSetUp_LU()
72 ((PC_Factor *)dir)->fact = pc->pmat; in PCSetUp_LU()
87 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)dir)->ordering, &dir->row, &dir->col)); in PCSetUp_LU()
88 …if (dir->nonzerosalongdiagonal) PetscCall(MatReorderForNonzeroDiagonal(pc->pmat, dir->nonzerosalon… in PCSetUp_LU()
91 …PetscCall(MatLUFactorSymbolic(((PC_Factor *)dir)->fact, pc->pmat, dir->row, dir->col, &((PC_Factor… in PCSetUp_LU()
[all …]
/petsc/src/ksp/pc/impls/factor/ilu/
H A Dilu.c81 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATSEQAIJ, &flg)); in PCSetUp_ILU()
83 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATMPIAIJ, &flg)); in PCSetUp_ILU()
92 PetscCall(MatSetOptionsPrefixFactor(pc->pmat, prefix)); in PCSetUp_ILU()
94 PetscCall(MatSetErrorIfFailure(pc->pmat, pc->erroriffailure)); in PCSetUp_ILU()
102 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)ilu)->ordering, &ilu->row, &ilu->col)); in PCSetUp_ILU()
110 PetscCall(MatILUFactor(pc->pmat, ilu->row, ilu->col, &((PC_Factor *)ilu)->info)); in PCSetUp_ILU()
111 PetscCall(MatFactorGetError(pc->pmat, &err)); in PCSetUp_ILU()
117 ((PC_Factor *)ilu)->fact = pc->pmat; in PCSetUp_ILU()
119 PetscCall(PetscObjectStateGet((PetscObject)pc->pmat, &pc->matstate)); in PCSetUp_ILU()
129 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)ilu)->ordering, &ilu->row, &ilu->col)); in PCSetUp_ILU()
[all …]
/petsc/src/mat/graphops/partition/impls/pmetis/
H A Dpmetis.c42 Mat mat = part->adj, amat, pmat; in MatPartitioningApply_Parmetis_Private() local
59 PetscCall(MatMPIAdjCreateNonemptySubcommMat(amat, &pmat)); in MatPartitioningApply_Parmetis_Private()
62 if (pmat) { in MatPartitioningApply_Parmetis_Private()
64 Mat_MPIAdj *adj = (Mat_MPIAdj *)pmat->data; in MatPartitioningApply_Parmetis_Private()
65 PetscInt *vtxdist = pmat->rmap->range; in MatPartitioningApply_Parmetis_Private()
72 PetscCall(PetscObjectGetComm((PetscObject)pmat, &pcomm)); in MatPartitioningApply_Parmetis_Private()
76 PetscCall(MatGetOwnershipRange(pmat, &rstart, NULL)); in MatPartitioningApply_Parmetis_Private()
77 for (i = 0; i < pmat->rmap->n; i++) { in MatPartitioningApply_Parmetis_Private()
82 PetscCall(PetscMalloc1(pmat->rmap->n, &locals)); in MatPartitioningApply_Parmetis_Private()
89 for (i = 0; i < pmat->rmap->n; i++) locals[i] = part_indices[i * bs]; in MatPartitioningApply_Parmetis_Private()
[all …]
/petsc/src/ksp/pc/interface/
H A Dprecon.c21 if (pc->pmat) { in PCGetDefaultType_Private()
22 PetscCall(MatHasOperation(pc->pmat, MATOP_GET_DIAGONAL_BLOCK, &hasopblock)); in PCGetDefaultType_Private()
23 PetscCall(MatHasOperation(pc->pmat, MATOP_SOLVE, &hasopsolve)); in PCGetDefaultType_Private()
25 PetscCall(MatGetFactorAvailable(pc->pmat, "petsc", MAT_FACTOR_ICC, &flg1)); in PCGetDefaultType_Private()
26 PetscCall(MatGetFactorAvailable(pc->pmat, "petsc", MAT_FACTOR_ILU, &flg2)); in PCGetDefaultType_Private()
27 PetscCall(MatIsSymmetricKnown(pc->pmat, &set, &flg3)); in PCGetDefaultType_Private()
28 …PetscCall(PetscObjectTypeCompareAny((PetscObject)pc->pmat, &isnormal, MATNORMAL, MATNORMALHERMITIA… in PCGetDefaultType_Private()
106 PetscCall(MatDestroy(&pc->pmat)); in PCReset()
475 pc->pmat = NULL; in PCCreate()
517 PetscCall(MatGetLocalSize(pc->pmat, &m, &n)); in PCApply()
[all …]
/petsc/src/ksp/pc/impls/kaczmarz/
H A Dkaczmarz.c27 PetscCall(MatGetOwnershipRange(pc->pmat, &xs, &xe)); in PCApply_Kaczmarz()
28 PetscCall(MatGetOwnershipRangeColumn(pc->pmat, &ys, &ye)); in PCApply_Kaczmarz()
34 PetscCall(MatGetRow(pc->pmat, i, &ncols, &cols, &vals)); in PCApply_Kaczmarz()
46 PetscCall(MatRestoreRow(pc->pmat, i, &ncols, &cols, &vals)); in PCApply_Kaczmarz()
50 PetscCall(MatGetRow(pc->pmat, i, &ncols, &cols, &vals)); in PCApply_Kaczmarz()
62 PetscCall(MatRestoreRow(pc->pmat, i, &ncols, &cols, &vals)); in PCApply_Kaczmarz()
/petsc/src/ksp/pc/impls/jacobi/
H A Djacobi.c209 PetscCall(MatGetDiagonal(pc->pmat, diag)); in PCSetUp_Jacobi()
212 PetscCall(MatGetRowMaxAbs(pc->pmat, diag, NULL)); in PCSetUp_Jacobi()
215 PetscCall(MatGetRowSumAbs(pc->pmat, diag)); in PCSetUp_Jacobi()
217 PetscCall(MatIsSPDKnown(pc->pmat, &isset, &isspd)); in PCSetUp_Jacobi()
223 PetscCall(MatGetDiagonal(pc->pmat, true_diag)); in PCSetUp_Jacobi()
241 PetscCall(MatGetDiagonal(pc->pmat, true_diag)); in PCSetUp_Jacobi()
249 PetscCall(MatGetRowSum(pc->pmat, diag)); in PCSetUp_Jacobi()
254 PetscCall(MatIsSPDKnown(pc->pmat, &isset, &isspd)); in PCSetUp_Jacobi()
275 PetscCall(MatGetDiagonal(pc->pmat, diagsqrt)); in PCSetUp_Jacobi()
278 PetscCall(MatGetRowMaxAbs(pc->pmat, diagsqrt, NULL)); in PCSetUp_Jacobi()
[all …]
/petsc/src/ksp/pc/impls/factor/icc/
H A Dicc.c17 PetscCall(MatSetOptionsPrefixFactor(pc->pmat, prefix)); in PCSetUp_ICC()
19 PetscCall(MatSetErrorIfFailure(pc->pmat, pc->erroriffailure)); in PCSetUp_ICC()
25 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)icc)->ordering, &perm, &cperm)); in PCSetUp_ICC()
27 …PetscCall(MatICCFactorSymbolic(((PC_Factor *)icc)->fact, pc->pmat, perm, &((PC_Factor *)icc)->info… in PCSetUp_ICC()
34 PetscCall(MatGetOrdering(pc->pmat, ((PC_Factor *)icc)->ordering, &perm, &cperm)); in PCSetUp_ICC()
36 …PetscCall(MatICCFactorSymbolic(((PC_Factor *)icc)->fact, pc->pmat, perm, &((PC_Factor *)icc)->info… in PCSetUp_ICC()
50 …PetscCall(MatCholeskyFactorNumeric(((PC_Factor *)icc)->fact, pc->pmat, &((PC_Factor *)icc)->info)); in PCSetUp_ICC()
/petsc/src/ksp/pc/impls/bjacobi/
H A Dbjacobi.c14 Mat mat = pc->mat, pmat = pc->pmat; in PCSetUp_BJacobi() local
23 PetscCall(MatGetLocalSize(pc->pmat, &M, &N)); in PCSetUp_BJacobi()
24 PetscCall(MatGetBlockSize(pc->pmat, &bs)); in PCSetUp_BJacobi()
63 PetscCall(MatGetOwnershipRange(pc->pmat, &start, &end)); in PCSetUp_BJacobi()
113 pmat = pc->pmat; in PCSetUp_BJacobi()
119 if (pc->pmat != pc->mat || !pc->useAmat) PetscCall(MatGetDiagonalBlock(pc->pmat, &pmat)); in PCSetUp_BJacobi()
120 else pmat = mat; in PCSetUp_BJacobi()
127 PetscCall(PCSetUp_BJacobi_Singleblock(pc, mat, pmat)); in PCSetUp_BJacobi()
129 PetscCall(PCSetUp_BJacobi_Multiblock(pc, mat, pmat)); in PCSetUp_BJacobi()
735 static PetscErrorCode PCSetUp_BJacobi_Singleblock(PC pc, Mat mat, Mat pmat) in PCSetUp_BJacobi_Singleblock() argument
[all …]
/petsc/src/ksp/pc/impls/redundant/
H A Dredundant.c91 …PetscCall(MatCreateRedundantMatrix(pc->pmat, red->psubcomm->n, subcomm, MAT_INITIAL_MATRIX, &red->… in PCSetUp_Redundant()
128 PetscCall(MatCreateVecs(pc->pmat, &x, NULL)); in PCSetUp_Redundant()
156 PetscCall(KSPSetOperators(red->ksp, pc->mat, pc->pmat)); in PCSetUp_Redundant()
169 …PetscCall(MatCreateRedundantMatrix(pc->pmat, red->psubcomm->n, PetscSubcommChild(red->psubcomm), r… in PCSetUp_Redundant()
172 PetscCall(KSPSetOperators(red->ksp, pc->mat, pc->pmat)); in PCSetUp_Redundant()
404 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATSEQSBAIJ, &issbaij)); in PCRedundantGetKSP_Redundant()
405 if (!issbaij) PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATMPISBAIJ, &issbaij)); in PCRedundantGetKSP_Redundant()
446 static PetscErrorCode PCRedundantGetOperators_Redundant(PC pc, Mat *mat, Mat *pmat) in PCRedundantGetOperators_Redundant() argument
452 if (pmat) *pmat = red->pmats; in PCRedundantGetOperators_Redundant()
472 PetscErrorCode PCRedundantGetOperators(PC pc, Mat *mat, Mat *pmat) in PCRedundantGetOperators() argument
[all …]
/petsc/src/ksp/ksp/tests/
H A Dex62f.F9042 Mat pmat
45 PetscCallA(PCGetOperators(pc, PETSC_NULL_MAT, pmat, ierr))
48 PetscCallA(PCSetOperators(jacobi, pmat, pmat, ierr))
53 PetscCallA(PCSetOperators(sor, pmat, pmat, ierr))
H A Dex87.c149 Mat pmat; in main() local
156 PetscCall(KSPGetOperators(subksp[1], NULL, &pmat)); in main()
158 PetscCall(PetscObjectBaseTypeCompareAny((PetscObject)pmat, &flg, MATSEQDENSE, MATMPIDENSE, "")); in main()
162 PetscCall(MatDenseGetArrayReadAndMemType(pmat, &array, type + 1)); in main()
163 PetscCall(MatDenseRestoreArrayReadAndMemType(pmat, &array)); in main()
/petsc/src/ksp/pc/impls/sor/
H A Dsor.c33 PetscCall(MatSOR(pc->pmat, x, jac->omega, (MatSORType)flag, jac->fshift, jac->its, jac->lits, y)); in PCApply_SOR()
34 PetscCall(MatFactorGetError(pc->pmat, (MatFactorError *)&pc->failedreason)); in PCApply_SOR()
45 PetscCall(MatIsSymmetricKnown(pc->pmat, &set, &sym)); in PCApplyTranspose_SOR()
47 PetscCall(MatSOR(pc->pmat, x, jac->omega, (MatSORType)flag, jac->fshift, jac->its, jac->lits, y)); in PCApplyTranspose_SOR()
48 PetscCall(MatFactorGetError(pc->pmat, (MatFactorError *)&pc->failedreason)); in PCApplyTranspose_SOR()
59 PetscCall(MatSOR(pc->pmat, b, jac->omega, stype, jac->fshift, its * jac->its, jac->lits, y)); in PCApplyRichardson_SOR()
60 PetscCall(MatFactorGetError(pc->pmat, (MatFactorError *)&pc->failedreason)); in PCApplyRichardson_SOR()
/petsc/src/ksp/pc/impls/hmg/
H A Dhmg.c16 static PetscErrorCode PCHMGExtractSubMatrix_Private(Mat pmat, Mat *submat, MatReuse reuse, PetscInt… in PCHMGExtractSubMatrix_Private() argument
23 PetscCall(PetscObjectGetComm((PetscObject)pmat, &comm)); in PCHMGExtractSubMatrix_Private()
25 PetscCall(MatGetOwnershipRange(pmat, &rstart, &rend)); in PCHMGExtractSubMatrix_Private()
28 PetscCall(MatCreateSubMatrix(pmat, isrow, isrow, reuse, submat)); in PCHMGExtractSubMatrix_Private()
164 Mat P = NULL, pmat = NULL; in PCSetUp_HMG() local
184 pmat = operators[level - 1]; in PCSetUp_HMG()
185 PetscCall(PCMGSetOperators(pc, level - 1, pmat, pmat)); in PCSetUp_HMG()
186 PetscCall(MatDestroy(&pmat)); in PCSetUp_HMG()
/petsc/src/ksp/pc/impls/rowscalingviennacl/
H A Drowscalingviennacl.cxx41 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATSEQAIJVIENNACL, &flg)); in PCSetUp_ROWSCALINGVIENNACL()
55 PetscCall(MatViennaCLCopyToGPU(pc->pmat)); in PCSetUp_ROWSCALINGVIENNACL()
56 gpustruct = (Mat_SeqAIJViennaCL *)pc->pmat->spptr; in PCSetUp_ROWSCALINGVIENNACL()
/petsc/src/ksp/pc/impls/chowiluviennacl/
H A Dchowiluviennacl.cxx41 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATSEQAIJVIENNACL, &flg)); in PCSetUp_CHOWILUVIENNACL()
55 PetscCall(MatViennaCLCopyToGPU(pc->pmat)); in PCSetUp_CHOWILUVIENNACL()
56 gpustruct = (Mat_SeqAIJViennaCL *)pc->pmat->spptr; in PCSetUp_CHOWILUVIENNACL()
/petsc/src/ksp/pc/impls/vpbjacobi/kokkos/
H A Dvpbjacobi_kok.kokkos.cxx154 PetscCall(MatGetVariableBlockSizes(pc->pmat, &nblocks, &bsizes)); in PCSetUp_VPBJacobi_Kokkos()
155 PetscCall(MatGetLocalSize(pc->pmat, &nlocal, NULL)); in PCSetUp_VPBJacobi_Kokkos()
190 PetscCall(PetscObjectBaseTypeCompare((PetscObject)pc->pmat, MATMPIAIJ, &ismpi)); in PCSetUp_VPBJacobi_Kokkos()
191 A = ismpi ? static_cast<Mat_MPIAIJ *>(pc->pmat->data)->A : pc->pmat; in PCSetUp_VPBJacobi_Kokkos()
/petsc/src/ksp/pc/impls/fieldsplit/
H A Dfieldsplit.c45 Mat *pmat; /* The preconditioning diagonal block for each split */ member
99 return jac->pmat[1]; in FieldSplitSchurPre()
103 return jac->schur_user ? jac->schur_user : jac->pmat[1]; in FieldSplitSchurPre()
361 PetscCall(MatNestGetSize(pc->pmat, &bs, NULL)); in PCFieldSplitSetRuntimeSplits_Private()
471 if (pc->pmat) PetscCall(MatGetBlockSize(pc->pmat, &jac->bs)); in PCFieldSplitSetDefaults()
483 PetscCall(MatFindZeroDiagonals(pc->pmat, &zerodiags)); in PCFieldSplitSetDefaults()
498 PetscCall(MatFindOffBlockDiagonalEntries(pc->pmat, &coupling)); in PCFieldSplitSetDefaults()
515 Mat M = pc->pmat; in PCFieldSplitSetDefaults()
520 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATNEST, &isnest)); in PCFieldSplitSetDefaults()
589 if (pc->pmat) PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATNEST, &matnest)); in PCSetUp_FieldSplit()
[all …]
/petsc/src/ksp/ksp/tutorials/
H A Dex15f.F9041 Mat pmat
44 PetscCallA(PCGetOperators(pc, PETSC_NULL_MAT, pmat, ierr))
45 PetscCallA(MatCreateVecs(pmat, diag, PETSC_NULL_VEC, ierr))
46 PetscCallA(MatGetDiagonal(pmat, diag, ierr))
/petsc/src/ksp/pc/impls/saviennacl/
H A Dsaviennacl.cxx40 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATSEQAIJVIENNACL, &flg)); in PCSetUp_SAVIENNACL()
54 PetscCall(MatViennaCLCopyToGPU(pc->pmat)); in PCSetUp_SAVIENNACL()
55 gpustruct = (Mat_SeqAIJViennaCL *)pc->pmat->spptr; in PCSetUp_SAVIENNACL()
/petsc/src/ksp/pc/impls/gasm/
H A Dgasm.c27 Mat *pmat; /* subdomain block matrices */ member
270 PetscCall(MatPartitioningSetAdjacency(part, pc->pmat)); in PCGASMSetHierarchicalPartitioning()
282 PetscCall(MatCreateVecs(pc->pmat, &outervec, NULL)); in PCGASMSetHierarchicalPartitioning()
286 …PetscCall(MatCreateSubMatrix(pc->pmat, fromrows, fromrows, MAT_INITIAL_MATRIX, &osm->permutationP)… in PCGASMSetHierarchicalPartitioning()
289 osm->pcmat = pc->pmat; in PCGASMSetHierarchicalPartitioning()
291 pc->pmat = osm->permutationP; in PCGASMSetHierarchicalPartitioning()
331 PetscCall(PCGASMCreateSubdomains(pc->pmat, osm->N, &osm->n, &osm->iis)); in PCSetUp_GASM()
349 PetscCall(PCGASMCreateLocalSubdomains(pc->pmat, osm->n, &osm->iis)); in PCSetUp_GASM()
358 PetscCall(PCGASMCreateLocalSubdomains(pc->pmat, osm->n, &osm->iis)); in PCSetUp_GASM()
377 PetscCall(MatIncreaseOverlapSplit(pc->pmat, osm->n, osm->ois, osm->overlap)); in PCSetUp_GASM()
[all …]
/petsc/src/ksp/pc/impls/eisens/
H A Deisen.c48 PetscCall(MatHasOperation(pc->pmat, MATOP_MULT_DIAGONAL_BLOCK, &hasop)); in PCApply_Eisenstat()
50 PetscCall(MatMultDiagonalBlock(pc->pmat, x, y)); in PCApply_Eisenstat()
67 PetscCall(MatHasOperation(pc->pmat, MATOP_MULT_DIAGONAL_BLOCK, &hasop)); in PCApplyTranspose_Eisenstat()
69 PetscCall(MatMultDiagonalBlock(pc->pmat, x, y)); in PCApplyTranspose_Eisenstat()
84 …PetscCheck(pc->mat == pc->pmat, PetscObjectComm((PetscObject)pc), PETSC_ERR_SUP, "Cannot have diff… in PCPreSolve_Eisenstat()
205 if (!pc->setupcalled) PetscCall(MatCreateVecs(pc->pmat, &eis->diag, NULL)); in PCSetUp_Eisenstat()
206 PetscCall(MatGetDiagonal(pc->pmat, eis->diag)); in PCSetUp_Eisenstat()
/petsc/src/ksp/pc/impls/cp/
H A Dcp.c20 Mat_SeqAIJ *aij = (Mat_SeqAIJ *)pc->pmat->data; in PCSetUp_CP()
23 PetscCall(PetscObjectTypeCompare((PetscObject)pc->pmat, MATSEQAIJ, &flg)); in PCSetUp_CP()
26 PetscCall(MatGetLocalSize(pc->pmat, &cp->m, &cp->n)); in PCSetUp_CP()
29 if (!cp->work) PetscCall(MatCreateVecs(pc->pmat, &cp->work, NULL)); in PCSetUp_CP()

1234