checkConvergence function

Performs convergence tests