I see... Do I need to have some external package for gamg? I am getting this error <div><br><div>Unable to find requested PC type gamg!<br><br>Also its not listed in -pc_type options when I do -help</div><div><br></div><div>
<br><div class="gmail_quote">On Fri, Aug 3, 2012 at 2:21 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Aug 3, 2012, at 1:34 PM, Amneet Bhalla <<a href="mailto:mail2amneet@gmail.com">mail2amneet@gmail.com</a>> wrote:<br>
<br>
> Thanks Matt for pointing to Makefile manual. I just included these lines<br>
><br>
> include $(PETSC_DIR)/conf/variables<br>
> LIBS = $(PETSC_LIB)<br>
><br>
> in the hypre's makefile and it is now working. This issue is resolved. I will try to write preconditioner using hypre's multigrid solvers.<br>
><br>
> Example files which you pointed for AMG and ML are for non-linear solvers and distributed arrays. The<br>
> equation I am solving is linear for which I have a sparse matrix MPIAIJ. Is it possible to use multigrid solvers<br>
> in PETSc without going through the process of again creating new arrays/matrices?<br>
<br>
</div></div> Yup, that is exactly what the hyper BoomerAMG, Trilinos ML and PETSc gang solvers are for.<br>
<br>
Barry<br>
<br>
><br>
><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Amneet <br><br></div><div><br></div><div><br></div><br>
</div></div>