<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>    Thanks very much! I understand.</DIV>
<DIV> </DIV>
<DIV>    I made a test. If the tolerance is large, PETSc says "converged" but the result is "incorrect" for my use</DIV>
<DIV> </DIV>
<DIV>due to the tolerance. While the tolerance is tight, when the rtol reaches a certain value, the result is</DIV>
<DIV> </DIV>
<DIV>not changing and it is not equal to the true value. And PETSc says "diverged". As Jed said, I need to either</DIV>
<DIV> </DIV>
<DIV>increase the number of iterations or use a better preconditioner. And I think the latter is a better way in</DIV>
<DIV> </DIV>
<DIV>my work.</DIV>
<DIV> </DIV>
<DIV>    Thanks.<BR><BR></DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV>>At 2012-07-11 01:45:28,"Mark F. Adams" <mark.adams@columbia.edu> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" id="isReplyContent"><BR>
<DIV>
<DIV>>On Jul 10, 2012, at 10:51 AM, w_ang_temp wrote:</DIV><BR class="Apple-interchange-newline">
<BLOCKQUOTE type="cite">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<DIV> </DIV>
<DIV>>    In my opinion, convergence in PETSc is decided by rtol, atol and dtol. The divergent hints just show >that</DIV>
<DIV> </DIV>
<DIV>>in the solving process it does not satisfy the rule. The "right" result may be different from the true result >at</DIV>
<DIV> </DIV>
<DIV>>the several back decimal places(I mean that they may be the same with four decimal places but may be >not</DIV>
<DIV>> </DIV>
<DIV>>the same with more decimal places). </DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>>No, If you have an rtol=1.e-30 and atol=1.e-300 then your solution will probably be correct to all decimal places even >though PETSc will say you "diverged".  You can't be too sure about how many digits of accuracy you have with >simple linear algebra arguments unless your system is extremely well conditioned.</DIV>
<DIV><BR></DIV>
<DIV>>As Jed said if you are doing 10000 iterations are happy with the solution then your tolerances are probably too >tight.  Look at the residual history and see if you are stagnating.</DIV><BR>
<BLOCKQUOTE type="cite">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<DIV>   </DIV>
<DIV>>    Is it right?<BR><BR></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV><BR></DIV>>At 2012-07-08 00:28:54,"Mark F. Adams" <<A href="mailto:mark.adams@columbia.edu">mark.adams@columbia.edu</A>> wrote:<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" id="isReplyContent">>It sounds like your -ksp_rtol is too small.  Experiment with looser tolerances until your solution is >not "correct" to see >how much accuracy you want. 
<DIV><BR>
<DIV>
<DIV>>On Jul 7, 2012, at 12:15 PM, w_ang_temp wrote:</DIV><BR class="Apple-interchange-newline">
<BLOCKQUOTE type="cite">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; COLOR: #000000; FONT-SIZE: 14px">
<DIV>>    Maybe it is a problem of mathematical concept. I compare the result with the true >result which is </DIV>
<DIV> </DIV>
<DIV>>computed and validated by other tools. I think it is right if I get the same result.</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV><BR></DIV>>>ÔÚ 2012-07-08 00:03:21£¬"Matthew Knepley" <<A href="mailto:knepley@gmail.com">knepley@gmail.com</A>> Ð´µÀ£º<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" id="isReplyContent">>>On Sat, Jul 7, 2012 at 10:00 AM, w_ang_temp <SPAN dir="ltr"><<A href="mailto:w_ang_temp@163.com" target="_blank">w_ang_temp@163.com</A>></SPAN> wrote:<BR>
<DIV class="gmail_quote">
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; FONT-SIZE: 14px">
<DIV>>>Hello,</DIV>
<DIV> </DIV>
<DIV>>>    I am a little puzzled that I get the right result while the converged reason says that 'Linear solve >>did not</DIV>
<DIV> </DIV>
<DIV>>>converge due to DIVERGED_ITS iterations 10000'. This infomation means that the >>iterations >reach >the maximum</DIV>
<DIV> </DIV>
<DIV>>>iterations. But the result is right now. So why says 'did not converge'? Can I think >>that the result is >>right and </DIV>
<DIV> </DIV>
<DIV>>>can be used?<BR></DIV></DIV></BLOCKQUOTE>
<DIV>>>Obviously, your definition of "right" is not the same as the convergence tolerances >>you are using.</DIV>
<DIV><BR></DIV>
<DIV>>>    Matt</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<DIV style="LINE-HEIGHT: 1.7; FONT-FAMILY: arial; FONT-SIZE: 14px">
<DIV><SPAN style="LINE-HEIGHT: 1.7"> </SPAN></DIV>
<DIV>>>    Thanks.</DIV>
<DIV>   </DIV>
<DIV>>>                                            Jim</DIV></DIV><BR><BR><SPAN title="neteasefooter"><SPAN></SPAN></SPAN></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<BR></BLOCKQUOTE></DIV><BR><BR><SPAN title="neteasefooter"><SPAN id="netease_mail_footer"></SPAN></SPAN></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></DIV><BR><BR><SPAN title="neteasefooter"><SPAN id="netease_mail_footer"></SPAN></SPAN></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>