:orphan: # SNESGetGridSequence gets the number of steps of grid sequencing that `SNES` will do ## Synopsis ``` #include "petscsnes.h" PetscErrorCode SNESGetGridSequence(SNES snes, PetscInt *steps) ``` Logically Collective ## Input Parameter - ***snes -*** the `SNES` context ## Output Parameter - ***steps -*** the number of refinements to do, defaults to 0 ## Options Database Key - ***-snes_grid_sequence -*** set number of refinements ## Note Use `SNESGetSolution()` to extract the fine grid solution after grid sequencing. ## See Also [](ch_snes), `SNESSetTrustRegionTolerance()`, `SNESGetLagPreconditioner()`, `SNESSetLagJacobian()`, `SNESGetLagJacobian()`, `SNESSetGridSequence()` ## Level intermediate ## Location src/snes/interface/snes.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/snes/interface/snes.c) [Index of all SNES routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)