xref: /petsc/src/ksp/pc/impls/factor/factor.h (revision 5a5764247e8e42b2972d2371d5c619b20bcb2a28)
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 
17*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorGetMatrix_Factor(PC,Mat*);
186dd4cc0eSJed Brown 
19*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetZeroPivot_Factor(PC,PetscReal);
20*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetShiftType_Factor(PC,MatFactorShiftType);
21*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetShiftAmount_Factor(PC,PetscReal);
22*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetDropTolerance_Factor(PC,PetscReal,PetscReal,PetscInt);
23*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetFill_Factor(PC,PetscReal);
24*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetMatOrderingType_Factor(PC,MatOrderingType);
25*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetLevels_Factor(PC,PetscInt);
26*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetAllowDiagonalFill_Factor(PC);
27*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetPivotInBlocks_Factor(PC,PetscBool);
28*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetMatSolverPackage_Factor(PC,const MatSolverPackage);
29*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetUpMatSolverPackage_Factor(PC);
30*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorGetMatSolverPackage_Factor(PC,const MatSolverPackage*);
31*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCFactorSetColumnPivot_Factor(PC,PetscReal);
32*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCSetFromOptions_Factor(PC);
33*5a576424SJed Brown PETSC_INTERN PetscErrorCode PCView_Factor(PC,PetscViewer);
3485317021SBarry Smith 
3535bd34faSBarry Smith #endif
36