Lines Matching refs:matapp
14 …Private(PC pc, PC_MG_Levels **mglevelsin, PetscBool transpose, PetscBool matapp, PCRichardsonConve… in PCMGMCycle_Private() argument
23 if (matapp) { in PCMGMCycle_Private()
31 PetscCheck(!matapp, PetscObjectComm((PetscObject)pc), PETSC_ERR_SUP, "Not supported"); in PCMGMCycle_Private()
38 …if (matapp && !mglevels->R) PetscCall(MatDuplicate(mglevels->B, MAT_DO_NOT_COPY_VALUES, &mglevels-… in PCMGMCycle_Private()
40 …if (matapp) PetscCall((*mglevels->matresidual)(mglevels->A, mglevels->B, mglevels->X, mglevels->R)… in PCMGMCycle_Private()
43 …if (matapp) PetscCall((*mglevels->matresidualtranspose)(mglevels->A, mglevels->B, mglevels->X, mgl… in PCMGMCycle_Private()
68 if (matapp) PetscCall(MatMatRestrict(mglevels->restrct, mglevels->R, &mgc->B)); in PCMGMCycle_Private()
71 if (matapp) PetscCall(MatMatRestrict(mglevels->interpolate, mglevels->R, &mgc->B)); in PCMGMCycle_Private()
75 if (matapp) { in PCMGMCycle_Private()
84 while (cycles--) PetscCall(PCMGMCycle_Private(pc, mglevelsin - 1, transpose, matapp, reason)); in PCMGMCycle_Private()
87 …if (matapp) PetscCall(MatMatInterpolateAdd(mglevels->interpolate, mgc->X, mglevels->X, &mglevels->… in PCMGMCycle_Private()
95 if (matapp) { in PCMGMCycle_Private()
103 PetscCheck(!matapp, PetscObjectComm((PetscObject)pc), PETSC_ERR_SUP, "Not supported"); in PCMGMCycle_Private()
110 PetscCheck(!matapp, PetscObjectComm((PetscObject)pc), PETSC_ERR_SUP, "Not supported"); in PCMGMCycle_Private()
556 PetscBool changeu, changed, matapp; in PCApply_MG_Internal() local
559 matapp = (PetscBool)(B && X); in PCApply_MG_Internal()
574 if (matapp) { in PCApply_MG_Internal()
582 if (matapp) { in PCApply_MG_Internal()
608 if (matapp) { in PCApply_MG_Internal()
616 if (matapp && levels > 1 && mglevels[levels - 2]->X) { in PCApply_MG_Internal()
634 if (matapp) PetscCall(MatZeroEntries(X)); in PCApply_MG_Internal()
636 …perpcapply; i++) PetscCall(PCMGMCycle_Private(pc, mglevels + levels - 1, transpose, matapp, NULL)); in PCApply_MG_Internal()
638 PetscCall(PCMGACycle_Private(pc, mglevels, transpose, matapp)); in PCApply_MG_Internal()
640 PetscCall(PCMGKCycle_Private(pc, mglevels, transpose, matapp)); in PCApply_MG_Internal()
642 PetscCall(PCMGFCycle_Private(pc, mglevels, transpose, matapp)); in PCApply_MG_Internal()
646 if (matapp) { in PCApply_MG_Internal()