<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Barry, <div>I have attached output from the solver with the options that you suggested. As you can see the direct solver causes the nonlinear solver to diverge - but the code converges easily with gmres</div><div>Thanks, <br>Subramanya </div><div><br><br><div>> Subject: Re: [petsc-users] Behaviour of Newton Methods with Direct Solvers.<br>> From: bsmith@mcs.anl.gov<br>> Date: Fri, 30 Aug 2013 21:16:33 -0500<br>> CC: petsc-users@mcs.anl.gov<br>> To: potaman@outlook.com<br>> <br>> <br>> On Aug 30, 2013, at 9:14 PM, subramanya sadasiva <potaman@outlook.com> wrote:<br>> <br>> > Hi Barry, <br>> > The linear solvers converge in 1 iterations. But the SNES solver fails when I use the direct solver. <br>> <br>>   Hmm. I don't have an explanation for this. Could you send some output when running with -snes_monitor -ksp_monitor_true_residual for both the iterative case and the direct solver case?<br>> <br>>    Barry<br>> <br>> > Thanks,<br>> > Subramanya  <br>> > <br>> > > Subject: Re: [petsc-users] Behaviour of Newton Methods with Direct Solvers.<br>> > > From: bsmith@mcs.anl.gov<br>> > > Date: Fri, 30 Aug 2013 21:11:36 -0500<br>> > > CC: petsc-users@mcs.anl.gov<br>> > > To: potaman@outlook.com<br>> > > <br>> > > <br>> > > I would not expect this. Are you sure that direct solvers are actually working well? You can run -ksp_type gmres -pc_type lu to "accelerate" the direct solver. Under normal circumstances the direct solver will converge in one iteration but if, for example, the problem is singular or nearly singular several iterations might solve the linear system but one may not.<br>> > > <br>> > > Barry<br>> > > <br>> > > On Aug 30, 2013, at 9:08 PM, subramanya sadasiva <potaman@outlook.com> wrote:<br>> > > <br>> > > > Hi, <br>> > > > Is there a reason that the convergence of the newton methods in SNES is much better with iterative solvers instead of with direct solvers? This is particularly in reference with the VI solvers. I get nearly quadratic convergence with the iterative solvers, but the code just diverges or converges linearly when i run with -ksp_type preonly .<br>> > > > Thanks, <br>> > > > Subramanya <br>> > ><br>> <br></div></div>                                           </div></body>
</html>