xref: /petsc/src/ksp/pc/impls/factor/ilu/ilu.h (revision 7d6bfa3b9d7db0ccd4cc481237114ca8dbb0dbff)
1 /*
2    Private data structure for ILU preconditioner.
3 */
4 #if !defined(__ILU_H)
5 #define __ILU_H
6 
7 #include "../src/ksp/pc/impls/factor/factor.h"
8 
9 typedef struct {
10   PC_Factor         hdr;
11   IS                row,col;         /* row and column permutations for reordering */
12   void              *implctx;         /* private implementation context */
13   PetscTruth        inplace;          /* in-place ILU factorization */
14   PetscTruth        reuseordering;    /* reuses previous reordering computed */
15 
16   PetscTruth        usedt;            /* use drop tolerance form of ILU */
17   PetscTruth        reusefill;        /* reuse fill from previous ILUDT */
18   PetscReal         actualfill;       /* expected fill in factorization */
19   PetscTruth        nonzerosalongdiagonal;
20   PetscReal         nonzerosalongdiagonaltol;
21 } PC_ILU;
22 
23 #endif
24