Actual source code: richardsonimpl.h

  1: /*
  2:       Private data structure for Richardson Iteration
  3: */

  5: #pragma once

  7: #include <petsc/private/kspimpl.h>

  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;