<div dir="ltr"><div>Hello Matt,<br></div><div><br>Ah ok. I had tried specifying -pc_mg_levels earlier, but it asks for interpolation to be setup. I am currently working on using DMDA from examples 32 and 34, which sets up the interpolation, using DMDASetInterpolationType. So this is the recommended way to go forward right?<br><br></div>Since I supply the sparse matrix format and the rhs values to PETSc, does it make sense to do a DMDACreate1d instead of 3d? I did a sample implementation using DMDA 1d and when I call KSPSolve and fetch the solution, it comes out all zeros, with the solver having converged. I am trying to understand what I am doing wrong there.<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 10:17 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Mon, Oct 12, 2015 at 9:11 PM, K. N. Ramachandran <span dir="ltr"><<a href="mailto:knram06@gmail.com" target="_blank">knram06@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hello Matt,<br><br></div><span class="">Actually I felt the boundary conditions were having a role to play and set all the boundary conditions to Dirichlet. In this case, convergence was almost immediate with the Hypre preconditioner, taking 17 seconds with 3 iterations. The MG method took about the same time though.<br><br></span></div><span class="">So I reverted to the Dirichlet, Neumann mix of BCs and Hypre starts to diverge. Please find attached the output for the Hypre run using Dirichlet and Neumann for a 21^3 grid (rows), with a max of 7 nonzeros per row. Details of the options used before running are in the file. The solver used in all cases is bcgs.<br><br></span></div><span class="">Also attached is the MG output for 101^3 grid<br></span></div>1) Dirichlet and Neumann<br></div>2) Dirichlet only<br><br></div><span class="">where it seems to take about the same time.<br></span></div></div></blockquote><div><br></div><div>Notice that you have no levels of MG here. You need to use -pc_mg_levels <n></div><div><br></div><div> Matt</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br></div></blockquote></span></div></div></div></blockquote></div><br clear="all"><br></div><div class="gmail_extra">Thanking You,<br></div><div class="gmail_extra"><div class="gmail_signature"><div dir="ltr">Ramachandran K.N.<br><div>Ph: 814-441-4279</div></div></div>
</div></div>