Home
last modified time | relevance | path

Searched refs:shifttype (Results 1 – 20 of 20) sorted by relevance

/petsc/src/ksp/pc/impls/factor/
H A Dfactimpl.c24 PetscErrorCode PCFactorSetShiftType_Factor(PC pc, MatFactorShiftType shifttype) in PCFactorSetShiftType_Factor() argument
29 …if (shifttype == (MatFactorShiftType)PETSC_DECIDE) dir->info.shifttype = (PetscReal)MAT_SHIFT_NONE; in PCFactorSetShiftType_Factor()
31 dir->info.shifttype = (PetscReal)shifttype; in PCFactorSetShiftType_Factor()
32 …if ((shifttype == MAT_SHIFT_NONZERO || shifttype == MAT_SHIFT_INBLOCKS) && dir->info.shiftamount =… in PCFactorSetShiftType_Factor()
118 *type = (MatFactorShiftType)(int)ilu->info.shifttype; in PCFactorGetShiftType_Factor()
229 …"PCFactorSetShiftType", MatFactorShiftTypes, (PetscEnum)(int)factor->info.shifttype, &etmp, &flg)); in PCSetFromOptions_Factor()
289 …if (MatFactorShiftTypesDetail[(int)factor->info.shifttype]) { /* Only print when using a nontrivia… in PCView_Factor()
290 …", MatFactorShiftTypesDetail[(int)factor->info.shifttype], MatFactorShiftTypes[(int)factor->info.s… in PCView_Factor()
H A Dfactor.c154 PetscErrorCode PCFactorSetShiftType(PC pc, MatFactorShiftType shifttype) in PCFactorSetShiftType() argument
158 PetscValidLogicalCollectiveEnum(pc, shifttype, 2); in PCFactorSetShiftType()
159 PetscTryMethod(pc, "PCFactorSetShiftType_C", (PC, MatFactorShiftType), (pc, shifttype)); in PCFactorSetShiftType()
698 fact->info.shifttype = (PetscReal)MAT_SHIFT_NONE; in PCFactorInitialize()
/petsc/src/ksp/pc/impls/redundant/
H A Dredundant.c18 MatFactorShiftType shifttype; member
21 static PetscErrorCode PCFactorSetShiftType_Redundant(PC pc, MatFactorShiftType shifttype) in PCFactorSetShiftType_Redundant() argument
29 PetscCall(PCFactorSetShiftType(pc, shifttype)); in PCFactorSetShiftType_Redundant()
32 red->shifttype = shifttype; in PCFactorSetShiftType_Redundant()
412 PetscCall(PCFactorSetShiftType(red->pc, red->shifttype)); in PCRedundantGetKSP_Redundant()
/petsc/src/mat/impls/aij/seq/
H A Daijfact.c242 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { /* set sctx.shift_top=max{rs} */ in MatLUFactorNumeric_SeqAIJ()
341 …if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE && !sctx.newshift && sctx.shift_frac… in MatLUFactorNumeric_SeqAIJ()
382 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatLUFactorNumeric_SeqAIJ()
384 } else if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatLUFactorNumeric_SeqAIJ()
386 } else if (info->shifttype == (PetscReal)MAT_SHIFT_INBLOCKS) { in MatLUFactorNumeric_SeqAIJ()
421 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { /* set sctx.shift_top=max{rs} */ in MatLUFactorNumeric_SeqAIJ_inplace()
491 …if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE && !sctx.newshift && sctx.shift_frac… in MatLUFactorNumeric_SeqAIJ_inplace()
530 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatLUFactorNumeric_SeqAIJ_inplace()
532 } else if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatLUFactorNumeric_SeqAIJ_inplace()
578 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { /* set sctx.shift_top=max{rs} */ in MatLUFactorNumeric_SeqAIJ_InplaceWithPerm()
[all …]
H A Dinode.c1221 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { /* set sctx.shift_top=max{rs} */ in MatLUFactorNumeric_SeqAIJ_Inode()
1936 …if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE && !sctx.newshift && sctx.shift_frac… in MatLUFactorNumeric_SeqAIJ_Inode()
1971 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatLUFactorNumeric_SeqAIJ_Inode()
1973 } else if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatLUFactorNumeric_SeqAIJ_Inode()
1975 } else if (info->shifttype == (PetscReal)MAT_SHIFT_INBLOCKS) { in MatLUFactorNumeric_SeqAIJ_Inode()
/petsc/src/mat/impls/baij/seq/
H A Dbaijfact3.c172 …PetscCheck(info->shifttype != (PetscReal)MAT_SHIFT_NONZERO && info->shifttype != (PetscReal)MAT_SH… in MatLUFactorSymbolic_SeqBAIJ()
H A Dbaijfact.c470 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { /* set sctx.shift_top=max{rs} */ in MatLUFactorNumeric_SeqBAIJ_1()
569 …if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE && !sctx.newshift && sctx.shift_frac… in MatLUFactorNumeric_SeqBAIJ_1()
602 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatLUFactorNumeric_SeqBAIJ_1()
604 } else if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatLUFactorNumeric_SeqBAIJ_1()
606 } else if (info->shifttype == (PetscReal)MAT_SHIFT_INBLOCKS) { in MatLUFactorNumeric_SeqBAIJ_1()
877 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatCholeskyFactorNumeric_SeqBAIJ_N()
879 } else if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatCholeskyFactorNumeric_SeqBAIJ_N()
1005 if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatCholeskyFactorNumeric_SeqBAIJ_N_NaturalOrdering()
1007 } else if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatCholeskyFactorNumeric_SeqBAIJ_N_NaturalOrdering()
H A Dbaijfact2.c333 …PetscCheck(info->shifttype != (PetscReal)MAT_SHIFT_NONZERO && info->shifttype != (PetscReal)MAT_SH… in MatILUFactorSymbolic_SeqBAIJ()
H A Dbaijfact11.c248 if (info->shifttype == (PetscReal)MAT_SHIFT_NONE) { in MatLUFactorNumeric_SeqBAIJ_4()
570 if (info->shifttype == (PetscReal)MAT_SHIFT_NONE) { in MatLUFactorNumeric_SeqBAIJ_4_NaturalOrdering()
/petsc/src/mat/tests/
H A Dex76.c182 factinfo.shifttype = (PetscReal)MAT_SHIFT_NONZERO; in main()
185 factinfo.shifttype = (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE; in main()
H A Dex125.c337 info.shifttype = (PetscReal)MAT_SHIFT_NONE; in main()
/petsc/src/ksp/pc/impls/factor/ilu/
H A Dilu.c80 if (((PC_Factor *)ilu)->info.shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in PCSetUp_ILU()
85 ((PC_Factor *)ilu)->info.shifttype = (PetscReal)MAT_SHIFT_INBLOCKS; in PCSetUp_ILU()
/petsc/src/mat/impls/sbaij/seq/
H A Dsbaijfact.c1333 if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_inplace()
1335 } else if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_inplace()
1366 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { /* set sctx.shift_top=max{rs} */ in MatCholeskyFactorNumeric_SeqSBAIJ_1_NaturalOrdering()
1488 if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_NaturalOrdering()
1490 } else if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_NaturalOrdering()
1492 } else if (info->shifttype == (PetscReal)MAT_SHIFT_INBLOCKS) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_NaturalOrdering()
1629 if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_NaturalOrdering_inplace()
1631 } else if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) { in MatCholeskyFactorNumeric_SeqSBAIJ_1_NaturalOrdering_inplace()
/petsc/src/binding/petsc4py/src/lib-petsc/
H A Dcustom.h261 info->shifttype = (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE; in MatFactorInfoDefaults()
263 info->shifttype = (PetscReal)MAT_SHIFT_NONZERO; in MatFactorInfoDefaults()
266 info->shifttype = (PetscReal)MAT_SHIFT_NONE; in MatFactorInfoDefaults()
/petsc/src/ksp/pc/impls/factor/icc/
H A Dicc.c183 ((PC_Factor *)icc)->info.shifttype = (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE; in PCCreate_ICC()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscmat.pxi446 PetscReal shifttype, shiftamount
1153 cdef shifttype = options.pop('shifttype', None)
1154 if shifttype is not None:
1155 info.shifttype = <PetscReal>matfactorshifttype(shifttype)
/petsc/src/ksp/pc/impls/factor/lu/
H A Dlu.c272 ((PC_Factor *)dir)->info.shifttype = (PetscReal)MAT_SHIFT_NONE; in PCCreate_LU()
/petsc/doc/changes/
H A D31.md103 with -pc_factor_shift_type \<shifttype> and -pc_factor_shift_amount
/petsc/include/petsc/private/
H A Dmatimpl.h863 …if (info->shifttype == (PetscReal)MAT_SHIFT_NONZERO) PetscCall(MatPivotCheck_nz(mat, info, sctx, r… in MatPivotCheck()
864 …else if (info->shifttype == (PetscReal)MAT_SHIFT_POSITIVE_DEFINITE) PetscCall(MatPivotCheck_pd(mat… in MatPivotCheck()
865 …else if (info->shifttype == (PetscReal)MAT_SHIFT_INBLOCKS) PetscCall(MatPivotCheck_inblocks(mat, i… in MatPivotCheck()
/petsc/include/
H A Dpetscmat.h1544 PetscReal shifttype; /* type of shift added to matrix factor to prevent zero pivots */ member