<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 7, 2014 at 4:09 PM, Danyang Su <span dir="ltr"><<a href="mailto:danyang.su@gmail.com" target="_blank">danyang.su@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I have implemented the KSP solver to a CFD problem and it works well for most of the scenarios. But for some scenarios, it will give out solution 0.<br>
<br>
The matrix structure, rhs and solution from PETSc and another sequential solver can be found in the attached files. Please note that the first value is the number of data in the file.<br>
<br>
For linear equations 1 to 48, it works well and the solutions are the same as the other solver. For equation 49, PETSc give out zero solution and the iteration number is 0, but the other solver give out acceptable solution. The KSPConvergencedReason is 3 for all these equations.<br>
</blockquote><div><br></div><div>This means that the solver converged because it went below the absolute tolerance. You could have a poorly scaled system.</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
All suggestions and comments are appreciated.<br>
<br>
Regards,<br>
<br>
Danyang<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>