xref: /petsc/src/snes/impls/ncg/snesncgimpl.h (revision 9dd11ecf0918283bb567d8b33a92f53ac4ea7840)
1 /*
2    Private context for Richardson iteration
3 */
4 
5 #pragma once
6 #include <petsc/private/snesimpl.h>
7 #include <petsc/private/linesearchimpl.h>
8 
9 typedef struct {
10   SNESNCGType type;    /* Fletcher-Reeves, Polak-Ribiere-Polyak, Hestenes-Steifel, Dai-Yuan, Conjugate Descent */
11   PetscViewer monitor; /* monitor for ncg (prints out the alpha and beta parameters at each iteration) */
12 } SNES_NCG;
13