What is the difference between &quot;unpreconditioned resid norm&quot; and &quot;true resid norm&quot; in -ksp_monitor?<br><br><div class="gmail_quote">On Tue, Oct 11, 2011 at 6:50 PM, behzad baghapour <span dir="ltr">&lt;<a href="mailto:behzad.baghapour@gmail.com">behzad.baghapour@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks, I monitored the ksp but I found that &quot; unpreconditioned resid norm&quot; and &quot;true resid norm&quot; are exactly the same. I can&#39;t understand while I set Jacobian = Precondition matrix ?!!!<br>
<br>In addition, I am solving true Newton iterations and I saw that first iteration is good (as I got from previous linear solvers) and the norm of the matrix is what I expected BUT for the next nonlinear iteration, the linear iterations can not converge to desired tolerance!!!<div>
<div></div><div class="h5"><br>
 <br><br><div class="gmail_quote">On Tue, Oct 11, 2011 at 6:18 PM, Barry Smith <span dir="ltr">&lt;<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#kspdiverged" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#kspdiverged</a><br>
<div><div></div><div><br>
<br>
On Oct 11, 2011, at 9:45 AM, behzad baghapour wrote:<br>
<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I set my Jacobian matrix in petsc and test it to ensure for correctness for Jacobian and RHS function. ( also precondition = jacobian )<br>
&gt; I have solved my problem before with some other solvers (gmers/ILU(2)) and the convergence has been achieved within 15 - 16 iterations.<br>
&gt;<br>
&gt; But in petsc the linear solver (ksp=GMRES) is not converged within this number ( or may be converged in more than 700 iterations!!! ). I know that I should have a mistake but I can&#39;t predict it?<br>
&gt;<br>
&gt; Please help me what parts of petsc solver I should check?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Behzad<br>
&gt;<br>
&gt; --<br>
&gt; ==================================<br>
&gt; Behzad Baghapour<br>
&gt; Ph.D. Candidate, Mechecanical Engineering<br>
&gt; University of Tehran, Tehran, Iran<br>
&gt; <a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>
&gt; Fax: 0098-21-88020741<br>
&gt; ==================================<br>
&gt;<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>==================================<br>Behzad Baghapour<br>Ph.D. Candidate, Mechecanical Engineering<br>University of Tehran, Tehran, Iran<br><a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>

Fax: 0098-21-88020741<br>==================================<br><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>==================================<br>Behzad Baghapour<br>Ph.D. Candidate, Mechecanical Engineering<br>University of Tehran, Tehran, Iran<br><a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>
Fax: 0098-21-88020741<br>==================================<br><br>