1 /* 2 Private data structure for Richardson Iteration 3 */ 4 5 #pragma once 6 7 #include <petsc/private/kspimpl.h> 8 9 typedef struct { 10 PetscReal scale; /* scaling on preconditioner */ 11 PetscBool selfscale; /* determine optimimal scaling each iteration to minimize 2-norm of resulting residual */ 12 } KSP_Richardson; 13