xref: /petsc/src/ksp/pc/impls/factor/factor.h (revision 92e9c092f85b54571caa3626700023b4c3835052)
135bd34faSBarry Smith /*
2e1222f9fSBarry Smith    Private data structure for ILU/ICC/LU/Cholesky preconditioners.
335bd34faSBarry Smith */
435bd34faSBarry Smith #if !defined(__FACTOR_H)
535bd34faSBarry Smith #define __FACTOR_H
635bd34faSBarry Smith 
7b45d2f2cSJed Brown #include <petsc-private/pcimpl.h>                /*I "petscpc.h" I*/
835bd34faSBarry Smith 
935bd34faSBarry Smith typedef struct {
1035bd34faSBarry Smith   Mat              fact;              /* factored matrix */
1135bd34faSBarry Smith   MatFactorInfo    info;
1235bd34faSBarry Smith   MatOrderingType  ordering;          /* matrix reordering */
1335bd34faSBarry Smith   MatSolverPackage solvertype;
14879e8a4dSBarry Smith   MatFactorType    factortype;
1535bd34faSBarry Smith } PC_Factor;
1635bd34faSBarry Smith 
175a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorGetMatrix_Factor(PC,Mat*);
186dd4cc0eSJed Brown 
195a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetZeroPivot_Factor(PC,PetscReal);
205a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetShiftType_Factor(PC,MatFactorShiftType);
215a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetShiftAmount_Factor(PC,PetscReal);
225a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetDropTolerance_Factor(PC,PetscReal,PetscReal,PetscInt);
235a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetFill_Factor(PC,PetscReal);
245a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetMatOrderingType_Factor(PC,MatOrderingType);
252591b318SToby Isaac PETSC_INTERN PetscErrorCode PCFactorGetLevels_Factor(PC,PetscInt*);
265a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetLevels_Factor(PC,PetscInt);
27*92e9c092SBarry Smith PETSC_INTERN PetscErrorCode PCFactorSetAllowDiagonalFill_Factor(PC,PetscBool);
28*92e9c092SBarry Smith PETSC_INTERN PetscErrorCode PCFactorGetAllowDiagonalFill_Factor(PC,PetscBool*);
295a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetPivotInBlocks_Factor(PC,PetscBool);
305a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetMatSolverPackage_Factor(PC,const MatSolverPackage);
315a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetUpMatSolverPackage_Factor(PC);
325a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorGetMatSolverPackage_Factor(PC,const MatSolverPackage*);
335a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetColumnPivot_Factor(PC,PetscReal);
345a576424SJed Brown PETSC_INTERN PetscErrorCode PCSetFromOptions_Factor(PC);
355a576424SJed Brown PETSC_INTERN PetscErrorCode PCView_Factor(PC,PetscViewer);
3685317021SBarry Smith 
3735bd34faSBarry Smith #endif
38