xref: /petsc/src/snes/impls/ncg/snesncgimpl.h (revision ccbc64bcac6ea4e594eedb9b8a0ff4f20261c17a)
1 /*
2    Private context for Richardson iteration
3 */
4 
5 #ifndef __SNES_NCG_H
6 #define __SNES_NCG_H
7 #include <private/snesimpl.h>
8 #include <private/linesearchimpl.h>
9 
10 typedef struct {
11   PetscInt    betatype;     /* 0 = Fletcher-Reeves, 1 = Polak-Ribiere-Polyak, 2 = Hestenes-Steifel, 3 = Dai-Yuan, 4 = Conjugate Descent */
12   PetscViewer monitor;   /* monitor for ncg (prints out the alpha and beta parameters at each interation) */
13   PetscLineSearch linesearch;
14 } SNES_NCG;
15 
16 #endif
17