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