# KSPConvergedSkip
Convergence test that do not return as converged until the maximum number of iterations is reached. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPConvergedSkip(KSP ksp, PetscInt n, PetscReal rnorm, KSPConvergedReason *reason, void *dummy)
```
Collective on ksp


## Input Parameters

- ***ksp   -*** iterative context
- ***n     -*** iteration number
- ***rnorm -*** 2-norm residual value (may be estimated)
- ***dummy -*** unused convergence context



## Returns

- ***reason -*** `KSP_CONVERGED_ITERATING`, `KSP_CONVERGED_ITS`



## Notes
This should be used as the convergence test with the option
`KSPSetNormType`(ksp,`KSP_NORM_NONE`), since norms of the residual are
not computed. Convergence is then declared after the maximum number
of iterations have been reached. Useful when one is using `KSPCG` or
`KSPBCGS`. [](sec_flexibleksp)




## See Also
 [](chapter_ksp), `KSP`, `KSPCG`, `KSPBCGS`, `KSPSetConvergenceTest()`, `KSPSetTolerances()`, `KSPSetNormType()`, [](sec_flexibleksp),

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/interface/iterativ.c.html#KSPConvergedSkip">src/ksp/ksp/interface/iterativ.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex71.c.html">src/ksp/ksp/tutorials/ex71.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/iterativ.c)


[Index of all KSP routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
