#if !defined(__GSIMPL) #define __GSIMPL #include /*I "petscsnes.h" I*/ #include typedef struct { PetscInt sweeps; /* number of sweeps through the local subdomain before neighbor communication */ PetscInt max_its; /* maximum iterations of the inner pointblock solver */ PetscReal rtol; /* relative tolerance of the inner pointblock solver */ PetscReal abstol; /* absolute tolerance of the inner pointblock solver */ PetscReal stol; /* step tolerance of the inner pointblock solver */ PetscReal h; /* differencing for secant variants */ PetscBool secant_mat; /* use the Jacobian to get the coloring for the secant */ } SNES_NGS; PETSC_EXTERN PetscErrorCode SNESComputeNGSDefaultSecant(SNES,Vec,Vec,void *); #endif