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