<div dir="ltr">On Wed, Mar 20, 2013 at 2:00 PM, Mark F. Adams <span dir="ltr"><<a href="mailto:mark.adams@columbia.edu" target="_blank">mark.adams@columbia.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
On Mar 20, 2013, at 2:12 PM, Mehrdad H Farahani <<a href="mailto:mh.farahani@gmail.com">mh.farahani@gmail.com</a>> wrote:<br>
<br>
> I'm experience a weird convergence problem with bcgsl with both ILU and GAMG preconditioning. The problem converges normally (at least in the preconditioned norm), but then kicks out with converged reason = -4. I've attached the convergence history of the previous time-step which worked and the timestep which shows problems. Could someone give me an idea on how to proceed?<br>
><br>
<br>
</div>Did you run with -ksp_converged_reason ?<br>
<br>
I don't know were this -4 comes from. Could this be from your code?<br></blockquote><div><br></div><div style>Some people call KSPGetConvergedReason(), but then don't compare to the enums and don't convert to a string using KSPConvergedReasons[reason].</div>
<div style><br></div><div style><a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/KSP/KSP_DIVERGED_DTOL.html">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/KSP/KSP_DIVERGED_DTOL.html</a><br></div>
<div style><br></div><div style>The problem is likely that your preconditioner is singular. What sort of problem are you solving?</div></div></div></div>