petsc-3.7.1 2016-05-15
Report Typos and Errors

PCLU

Uses a direct solver, based on LU factorization, as a preconditioner

Options Database Keys

-pc_factor_reuse_ordering - Activate PCFactorSetReuseOrdering() Many br
-pc_factor_mat_solver_package - Actives PCFactorSetMatSolverPackage() to choose the direct solver, like superlu Many br
-pc_factor_reuse_fill - Activates PCFactorSetReuseFill() Many br
-pc_factor_fill <fill> - Sets fill amount Many br
-pc_factor_in_place - Activates in-place factorization Many br
-pc_factor_mat_ordering_type <nd,rcm,...> - Sets ordering routine Many br
-pc_factor_pivot_in_blocks <true,false> - allow pivoting within the small blocks during factorization (may increase Many brstability of factorization. Many br
-pc_factor_shift_type <shifttype> - Sets shift type or PETSC_DECIDE for the default; use '-help' for a list of available types Many br
-pc_factor_shift_amount <shiftamount> - Sets shift amount or PETSC_DECIDE for the default Many br
-pc_factor_nonzeros_along_diagonal - permutes the rows and columns to try to put nonzero value along the Many brdiagonal. Many br

Notes: Not all options work for all matrix formats Many brRun with -help to see additional options for particular matrix formats or factorization Many bralgorithms Many br

Many br

Notes: Usually this will compute an "exact" solution in one iteration and does Many brnot need a Krylov method (i.e. you can use -ksp_type preonly, or Many brKSPSetType(ksp,KSPPREONLY) for the Krylov method Many br

See Also

PCCreate(), PCSetType(), PCType (for list of available types), PC,
PCILU, PCCHOLESKY, PCICC, PCFactorSetReuseOrdering(), PCFactorSetReuseFill(), PCFactorGetMatrix(), Many brPCFactorSetFill(), PCFactorSetUseInPlace(), PCFactorSetMatOrderingType(), PCFactorSetColumnPivot(), Many brPCFactorSetPivotingInBlocks(),PCFactorSetShiftType(),PCFactorSetShiftAmount() Many brPCFactorReorderForNonzeroDiagonal() Many br

Level:beginner
Location:
src/ksp/pc/impls/factor/lu/lu.c
Index of all PC routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex13.c.html
src/ksp/ksp/examples/tutorials/ex30.c.html
src/ksp/ksp/examples/tutorials/ex52.c.html
src/ksp/ksp/examples/tutorials/ex53.c.html
src/ksp/ksp/examples/tutorials/ex13f90.F.html
src/ksp/ksp/examples/tutorials/ex52f.F.html
src/ksp/ksp/examples/tutorials/ex61f.F90.html
src/snes/examples/tutorials/ex74f.F90.html
src/tao/constrained/examples/tutorials/maros.c.html
src/tao/constrained/examples/tutorials/toy.c.html
src/tao/constrained/examples/tutorials/toyf.F.html