1. Especially with multi-physics simulations, it's important to nondimensionalize. You don't have to be formal about it, but computing with units that are well-scaled is useful to remove inessential ill-conditioning.<br>
<br>2. Most PETSc examples volume-weight residuals so that they can remain of the same order as you refine the grid.<div><br></div><div>3. Run with -snes_converged_reason -snes_monitor -ksp_converged_reason -ksp_monitor_true_residual. That will give you the important information about how the solver is converging. If it's not clear what is happening, you can send the output here.</div>
<div><br></div><div>4. More tips here: <a href="http://scicomp.stackexchange.com/a/514/119">http://scicomp.stackexchange.com/a/514/119</a><br><br><div class="gmail_quote">On Sat, Oct 13, 2012 at 5:04 PM, Bao Kai <span dir="ltr"><<a href="mailto:paeanball@gmail.com" target="_blank">paeanball@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, all, <div><br></div><div>I am a little unclear about the exact definition of the relative and exact tolerance or how the PETSc determines the convergence, while my problem is as follows. </div>
<div><br></div>
<div>Generally, all my equations are solved by SNES and I use the physical units.  The PC and KSP are bjacobi and bicgstab respectively. For the pressure equation, at the beginning, the domain is not so big, and the pressure are within a certain range.  The default parameters works.  </div>

<div><br></div><div>Then I increase the size of the domain by 10 times, then the range of the pressure will be about 10 times bigger accordingly due to gravity. Then with the default parameters, the KSP failed in getting converged with reaching the maximum iteration No. .  </div>

<div><br></div><div>Could you please help to tell me how I should change the tolerance to fit the change of the domain?</div><div><br></div><div>Thank you very much. </div><div><br></div><div>Best Regards, </div><span class="HOEnZb"><font color="#888888"><div>
Kai </div>
</font></span></div>
</blockquote></div><br></div>