xref: /petsc/src/ksp/pc/impls/factor/ilu/ilu.h (revision 075768bc809001225c61399c80901bb8d8a18b20)
19b54502bSHong Zhang /*
29b54502bSHong Zhang    Private data structure for ILU preconditioner.
39b54502bSHong Zhang */
49b54502bSHong Zhang #if !defined(__ILU_H)
59b54502bSHong Zhang #define __ILU_H
69b54502bSHong Zhang 
7*075768bcSBarry Smith #include "src/ksp/pc/impls/factor/factor.h"
89b54502bSHong Zhang 
99b54502bSHong Zhang typedef struct {
10*075768bcSBarry Smith   PC_Factor         hdr;
119b54502bSHong Zhang   IS                row,col;         /* row and column permutations for reordering */
129b54502bSHong Zhang   void              *implctx;         /* private implementation context */
139b54502bSHong Zhang   PetscTruth        inplace;          /* in-place ILU factorization */
149b54502bSHong Zhang   PetscTruth        reuseordering;    /* reuses previous reordering computed */
159b54502bSHong Zhang 
169b54502bSHong Zhang   PetscTruth        usedt;            /* use drop tolerance form of ILU */
179b54502bSHong Zhang   PetscTruth        reusefill;        /* reuse fill from previous ILUDT */
189b54502bSHong Zhang   PetscReal         actualfill;       /* expected fill in factorization */
199b54502bSHong Zhang   PetscTruth        nonzerosalongdiagonal;
209b54502bSHong Zhang   PetscReal         nonzerosalongdiagonaltol;
219b54502bSHong Zhang } PC_ILU;
229b54502bSHong Zhang 
239b54502bSHong Zhang #endif
24