xref: /petsc/src/snes/impls/fas/fasimpls.h (revision aaf9cf16f7c13493ca75cf610d6a4eecc84850ff)
1 #ifndef _SNES_FASIMPLS
2 #define _SNES_FASIMPLS
3 
4 #include <private/snesimpl.h>
5 #include <private/dmimpl.h>
6 
7 typedef struct {
8 
9   /* flags for knowing the global place of this FAS object */
10   PetscInt       level;                        /* level = 0 coarsest level */
11   PetscInt       levels;                       /* if level + 1 = levels; we're the last turtle */
12 
13 
14   /* smoothing objects */
15   SNES           upsmooth;                     /* the SNES for presmoothing */
16   SNES           downsmooth;                   /* the SNES for postsmoothing */
17 
18   /* coarse grid correction objects */
19   SNES           next;                         /* the SNES instance for the next level in the hierarchy */
20   Mat            interpolate;                  /* interpolation */
21   Mat            restrct;                      /* restriction operator */
22   Vec            rscale;                       /* the pointwise scaling of the restriction operator */
23 
24   /* method parameters */
25   PetscInt       n_cycles;                     /* number of cycles on this level */
26   PetscInt       max_up_it;                    /* number of pre-smooths */
27   PetscInt       max_down_it;                  /* number of post-smooth cycles */
28 
29 } SNES_FAS;
30 
31 #endif
32