On Fri, Aug 3, 2012 at 1:34 PM, Amneet Bhalla <mail2amneet at gmail.com> wrote:
> Thanks Matt for pointing to Makefile manual. I just included these lines > > include $(PETSC_DIR)/conf/variables > LIBS = $(PETSC_LIB) > > 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. > > Example files which you pointed for AMG and ML are for non-linear solvers > and distributed arrays. The > equation I am solving is linear for which I have a sparse matrix MPIAIJ. > Is it possible to use multigrid solvers > in PETSc without going through the process of again creating new > arrays/matrices? > The point is that if you just use -pc_type gamg from the command line it is no different for these examples. They also build sparse matrices underneath. Matt -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120803/e58c0621/attachment.html>
