<div dir="ltr">Usually this is what people do, yes. As you can see in your output, with your current settings you're getting no where because you frequently leave your inner loop when it has converged to 1.0E-5.  The outer loop will never be converged to 1.0E-10 in this situation.</div>