Lines Matching refs:pc
7 PetscErrorCode PCFactorSetDefaultOrdering_Factor(PC pc) in PCFactorSetDefaultOrdering_Factor() argument
13 if (pc->pmat) { in PCFactorSetDefaultOrdering_Factor()
14 PetscCall(PCGetOptionsPrefix(pc, &prefix)); in PCFactorSetDefaultOrdering_Factor()
15 PetscCall(MatSetOptionsPrefixFactor(pc->pmat, prefix)); in PCFactorSetDefaultOrdering_Factor()
16 PC_Factor *fact = (PC_Factor *)pc->data; in PCFactorSetDefaultOrdering_Factor()
17 …PetscCall(MatSolverTypeGet(fact->solvertype, ((PetscObject)pc->pmat)->type_name, fact->factortype,… in PCFactorSetDefaultOrdering_Factor()
22 PetscCall(MatGetFactor(pc->pmat, fact->solvertype, fact->factortype, &fact->fact)); in PCFactorSetDefaultOrdering_Factor()
30 PetscCall(MatGetFactor(pc->pmat, fact->solvertype, fact->factortype, &B)); in PCFactorSetDefaultOrdering_Factor()
49 static PetscErrorCode PCFactorSetReuseOrdering_Factor(PC pc, PetscBool flag) in PCFactorSetReuseOrdering_Factor() argument
51 PC_Factor *lu = (PC_Factor *)pc->data; in PCFactorSetReuseOrdering_Factor()
58 static PetscErrorCode PCFactorSetReuseFill_Factor(PC pc, PetscBool flag) in PCFactorSetReuseFill_Factor() argument
60 PC_Factor *lu = (PC_Factor *)pc->data; in PCFactorSetReuseFill_Factor()
67 static PetscErrorCode PCFactorSetUseInPlace_Factor(PC pc, PetscBool flg) in PCFactorSetUseInPlace_Factor() argument
69 PC_Factor *dir = (PC_Factor *)pc->data; in PCFactorSetUseInPlace_Factor()
76 static PetscErrorCode PCFactorGetUseInPlace_Factor(PC pc, PetscBool *flg) in PCFactorGetUseInPlace_Factor() argument
78 PC_Factor *dir = (PC_Factor *)pc->data; in PCFactorGetUseInPlace_Factor()
104 PetscErrorCode PCFactorSetUpMatSolverType(PC pc) in PCFactorSetUpMatSolverType() argument
107 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetUpMatSolverType()
108 PetscTryMethod(pc, "PCFactorSetUpMatSolverType_C", (PC), (pc)); in PCFactorSetUpMatSolverType()
128 PetscErrorCode PCFactorSetZeroPivot(PC pc, PetscReal zero) in PCFactorSetZeroPivot() argument
131 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetZeroPivot()
132 PetscValidLogicalCollectiveReal(pc, zero, 2); in PCFactorSetZeroPivot()
133 PetscTryMethod(pc, "PCFactorSetZeroPivot_C", (PC, PetscReal), (pc, zero)); in PCFactorSetZeroPivot()
154 PetscErrorCode PCFactorSetShiftType(PC pc, MatFactorShiftType shifttype) in PCFactorSetShiftType() argument
157 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetShiftType()
158 PetscValidLogicalCollectiveEnum(pc, shifttype, 2); in PCFactorSetShiftType()
159 PetscTryMethod(pc, "PCFactorSetShiftType_C", (PC, MatFactorShiftType), (pc, shifttype)); in PCFactorSetShiftType()
180 PetscErrorCode PCFactorSetShiftAmount(PC pc, PetscReal shiftamount) in PCFactorSetShiftAmount() argument
183 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetShiftAmount()
184 PetscValidLogicalCollectiveReal(pc, shiftamount, 2); in PCFactorSetShiftAmount()
185 PetscTryMethod(pc, "PCFactorSetShiftAmount_C", (PC, PetscReal), (pc, shiftamount)); in PCFactorSetShiftAmount()
213 PetscErrorCode PCFactorSetDropTolerance(PC pc, PetscReal dt, PetscReal dtcol, PetscInt maxrowcount) in PCFactorSetDropTolerance() argument
216 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetDropTolerance()
217 PetscValidLogicalCollectiveReal(pc, dtcol, 3); in PCFactorSetDropTolerance()
218 PetscValidLogicalCollectiveInt(pc, maxrowcount, 4); in PCFactorSetDropTolerance()
219 …PetscTryMethod(pc, "PCFactorSetDropTolerance_C", (PC, PetscReal, PetscReal, PetscInt), (pc, dt, dt… in PCFactorSetDropTolerance()
238 PetscErrorCode PCFactorGetZeroPivot(PC pc, PetscReal *pivot) in PCFactorGetZeroPivot() argument
241 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetZeroPivot()
242 PetscUseMethod(pc, "PCFactorGetZeroPivot_C", (PC, PetscReal *), (pc, pivot)); in PCFactorGetZeroPivot()
261 PetscErrorCode PCFactorGetShiftAmount(PC pc, PetscReal *shift) in PCFactorGetShiftAmount() argument
264 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetShiftAmount()
265 PetscUseMethod(pc, "PCFactorGetShiftAmount_C", (PC, PetscReal *), (pc, shift)); in PCFactorGetShiftAmount()
284 PetscErrorCode PCFactorGetShiftType(PC pc, MatFactorShiftType *type) in PCFactorGetShiftType() argument
287 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetShiftType()
288 PetscUseMethod(pc, "PCFactorGetShiftType_C", (PC, MatFactorShiftType *), (pc, type)); in PCFactorGetShiftType()
307 PetscErrorCode PCFactorGetLevels(PC pc, PetscInt *levels) in PCFactorGetLevels() argument
310 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetLevels()
311 PetscUseMethod(pc, "PCFactorGetLevels_C", (PC, PetscInt *), (pc, levels)); in PCFactorGetLevels()
331 PetscErrorCode PCFactorSetLevels(PC pc, PetscInt levels) in PCFactorSetLevels() argument
334 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetLevels()
335 …PetscCheck(levels >= 0, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_OUTOFRANGE, "negative leve… in PCFactorSetLevels()
336 PetscValidLogicalCollectiveInt(pc, levels, 2); in PCFactorSetLevels()
337 PetscTryMethod(pc, "PCFactorSetLevels_C", (PC, PetscInt), (pc, levels)); in PCFactorSetLevels()
361 PetscErrorCode PCFactorSetAllowDiagonalFill(PC pc, PetscBool flg) in PCFactorSetAllowDiagonalFill() argument
364 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetAllowDiagonalFill()
365 PetscTryMethod(pc, "PCFactorSetAllowDiagonalFill_C", (PC, PetscBool), (pc, flg)); in PCFactorSetAllowDiagonalFill()
388 PetscErrorCode PCFactorGetAllowDiagonalFill(PC pc, PetscBool *flg) in PCFactorGetAllowDiagonalFill() argument
391 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetAllowDiagonalFill()
392 PetscUseMethod(pc, "PCFactorGetAllowDiagonalFill_C", (PC, PetscBool *), (pc, flg)); in PCFactorGetAllowDiagonalFill()
412 PetscErrorCode PCFactorReorderForNonzeroDiagonal(PC pc, PetscReal rtol) in PCFactorReorderForNonzeroDiagonal() argument
415 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorReorderForNonzeroDiagonal()
416 PetscValidLogicalCollectiveReal(pc, rtol, 2); in PCFactorReorderForNonzeroDiagonal()
417 PetscTryMethod(pc, "PCFactorReorderForNonzeroDiagonal_C", (PC, PetscReal), (pc, rtol)); in PCFactorReorderForNonzeroDiagonal()
443 PetscErrorCode PCFactorSetMatSolverType(PC pc, MatSolverType stype) in PCFactorSetMatSolverType() argument
446 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetMatSolverType()
447 PetscTryMethod(pc, "PCFactorSetMatSolverType_C", (PC, MatSolverType), (pc, stype)); in PCFactorSetMatSolverType()
467 PetscErrorCode PCFactorGetMatSolverType(PC pc, MatSolverType *stype) in PCFactorGetMatSolverType() argument
472 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetMatSolverType()
474 PetscCall(PetscObjectQueryFunction((PetscObject)pc, "PCFactorGetMatSolverType_C", &f)); in PCFactorGetMatSolverType()
475 if (f) PetscCall((*f)(pc, stype)); in PCFactorGetMatSolverType()
507 PetscErrorCode PCFactorSetFill(PC pc, PetscReal fill) in PCFactorSetFill() argument
510 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetFill()
511 …PetscCheck(fill >= 1.0, PetscObjectComm((PetscObject)pc), PETSC_ERR_ARG_OUTOFRANGE, "Fill factor c… in PCFactorSetFill()
512 PetscTryMethod(pc, "PCFactorSetFill_C", (PC, PetscReal), (pc, fill)); in PCFactorSetFill()
546 PetscErrorCode PCFactorSetUseInPlace(PC pc, PetscBool flg) in PCFactorSetUseInPlace() argument
549 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetUseInPlace()
550 PetscTryMethod(pc, "PCFactorSetUseInPlace_C", (PC, PetscBool), (pc, flg)); in PCFactorSetUseInPlace()
569 PetscErrorCode PCFactorGetUseInPlace(PC pc, PetscBool *flg) in PCFactorGetUseInPlace() argument
572 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorGetUseInPlace()
573 PetscUseMethod(pc, "PCFactorGetUseInPlace_C", (PC, PetscBool *), (pc, flg)); in PCFactorGetUseInPlace()
604 PetscErrorCode PCFactorSetMatOrderingType(PC pc, MatOrderingType ordering) in PCFactorSetMatOrderingType() argument
607 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetMatOrderingType()
608 PetscTryMethod(pc, "PCFactorSetMatOrderingType_C", (PC, MatOrderingType), (pc, ordering)); in PCFactorSetMatOrderingType()
630 PetscErrorCode PCFactorSetColumnPivot(PC pc, PetscReal dtcol) in PCFactorSetColumnPivot() argument
633 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetColumnPivot()
634 PetscValidLogicalCollectiveReal(pc, dtcol, 2); in PCFactorSetColumnPivot()
635 PetscTryMethod(pc, "PCFactorSetColumnPivot_C", (PC, PetscReal), (pc, dtcol)); in PCFactorSetColumnPivot()
656 PetscErrorCode PCFactorSetPivotInBlocks(PC pc, PetscBool pivot) in PCFactorSetPivotInBlocks() argument
659 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetPivotInBlocks()
660 PetscValidLogicalCollectiveBool(pc, pivot, 2); in PCFactorSetPivotInBlocks()
661 PetscTryMethod(pc, "PCFactorSetPivotInBlocks_C", (PC, PetscBool), (pc, pivot)); in PCFactorSetPivotInBlocks()
682 PetscErrorCode PCFactorSetReuseFill(PC pc, PetscBool flag) in PCFactorSetReuseFill() argument
685 PetscValidHeaderSpecific(pc, PC_CLASSID, 1); in PCFactorSetReuseFill()
686 PetscValidLogicalCollectiveBool(pc, flag, 2); in PCFactorSetReuseFill()
687 PetscTryMethod(pc, "PCFactorSetReuseFill_C", (PC, PetscBool), (pc, flag)); in PCFactorSetReuseFill()
691 PetscErrorCode PCFactorInitialize(PC pc, MatFactorType ftype) in PCFactorInitialize() argument
693 PC_Factor *fact = (PC_Factor *)pc->data; in PCFactorInitialize()
702 pc->ops->getfactoredmatrix = PCFactorGetMatrix_Factor; in PCFactorInitialize()
704 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetZeroPivot_C", PCFactorSetZeroPiv… in PCFactorInitialize()
705 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetZeroPivot_C", PCFactorGetZeroPiv… in PCFactorInitialize()
706 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetShiftType_C", PCFactorSetShiftTy… in PCFactorInitialize()
707 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetShiftType_C", PCFactorGetShiftTy… in PCFactorInitialize()
708 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetShiftAmount_C", PCFactorSetShift… in PCFactorInitialize()
709 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetShiftAmount_C", PCFactorGetShift… in PCFactorInitialize()
710 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetMatSolverType_C", PCFactorGetMat… in PCFactorInitialize()
711 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetMatSolverType_C", PCFactorSetMat… in PCFactorInitialize()
712 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetUpMatSolverType_C", PCFactorSetU… in PCFactorInitialize()
713 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetFill_C", PCFactorSetFill_Factor)… in PCFactorInitialize()
714 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetMatOrderingType_C", PCFactorSetM… in PCFactorInitialize()
715 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetLevels_C", PCFactorSetLevels_Fac… in PCFactorInitialize()
716 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetLevels_C", PCFactorGetLevels_Fac… in PCFactorInitialize()
717 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetAllowDiagonalFill_C", PCFactorSe… in PCFactorInitialize()
718 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetAllowDiagonalFill_C", PCFactorGe… in PCFactorInitialize()
719 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetPivotInBlocks_C", PCFactorSetPiv… in PCFactorInitialize()
720 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetUseInPlace_C", PCFactorSetUseInP… in PCFactorInitialize()
721 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetUseInPlace_C", PCFactorGetUseInP… in PCFactorInitialize()
722 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetReuseOrdering_C", PCFactorSetReu… in PCFactorInitialize()
723 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetReuseFill_C", PCFactorSetReuseFi… in PCFactorInitialize()
727 PetscErrorCode PCFactorClearComposedFunctions(PC pc) in PCFactorClearComposedFunctions() argument
730 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetZeroPivot_C", NULL)); in PCFactorClearComposedFunctions()
731 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetZeroPivot_C", NULL)); in PCFactorClearComposedFunctions()
732 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetShiftType_C", NULL)); in PCFactorClearComposedFunctions()
733 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetShiftType_C", NULL)); in PCFactorClearComposedFunctions()
734 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetShiftAmount_C", NULL)); in PCFactorClearComposedFunctions()
735 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetShiftAmount_C", NULL)); in PCFactorClearComposedFunctions()
736 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetMatSolverType_C", NULL)); in PCFactorClearComposedFunctions()
737 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetMatSolverType_C", NULL)); in PCFactorClearComposedFunctions()
738 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetUpMatSolverType_C", NULL)); in PCFactorClearComposedFunctions()
739 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetFill_C", NULL)); in PCFactorClearComposedFunctions()
740 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetMatOrderingType_C", NULL)); in PCFactorClearComposedFunctions()
741 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetLevels_C", NULL)); in PCFactorClearComposedFunctions()
742 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetLevels_C", NULL)); in PCFactorClearComposedFunctions()
743 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetAllowDiagonalFill_C", NULL)); in PCFactorClearComposedFunctions()
744 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetAllowDiagonalFill_C", NULL)); in PCFactorClearComposedFunctions()
745 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetPivotInBlocks_C", NULL)); in PCFactorClearComposedFunctions()
746 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetUseInPlace_C", NULL)); in PCFactorClearComposedFunctions()
747 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorGetUseInPlace_C", NULL)); in PCFactorClearComposedFunctions()
748 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetReuseOrdering_C", NULL)); in PCFactorClearComposedFunctions()
749 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetReuseFill_C", NULL)); in PCFactorClearComposedFunctions()
750 …PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorReorderForNonzeroDiagonal_C", NULL)… in PCFactorClearComposedFunctions()
751 PetscCall(PetscObjectComposeFunction((PetscObject)pc, "PCFactorSetDropTolerance_C", NULL)); in PCFactorClearComposedFunctions()