xref: /petsc/src/snes/impls/ncg/snesncgimpl.h (revision 66af8762ec03dbef0e079729eb2a1734a35ed7ff)
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