[petsc-users] with hypre

Amneet Bhalla mail2amneet at gmail.com
Fri Aug 3 07:28:23 CDT 2012


Hi All,

I am trying to solve system of PDEs on AMR grid. I using PETSc 's Krylov
solver for that. This requires me
to use a FAC preconditioner with a non-Krylov solver for the level 0. I
actually tried PETSc's Krylov Solver
for level 0 (by building  MPIAIJ Mat and Vec), but it does not really
improve the convergence rate. So I believe
I will have to use a multigrid solver for level 0. Can I use my already
built PETSc Mat and Vec and call multigrid solvers from PETSc?

If thats not possible, I am planning to use hypre's "SysPFMG" to write a
multigrid solver for level 0.
I have installed PETSc with hypre by using --download-hypre=1 option.  I
can build and run many
examples in PETSC_ARCH/externalpackages/hypre-2.7.0b/src/examples/ but not
ex9; which is the
closest I could find for my purpose.
http://acts.nersc.gov/hypre/example09/ex9.c.html

 I am getting some linkage error like

$HOME/SOFTWARES/LIBRARIES/PETSc/linux/lib/libHYPRE.a(par_gsmg.o): In
function `hypre_BoomerAMGFitVectors':
$HOME/SOFTWARES/LIBRARIES/PETSc/externalpackages/hypre-2.7.0b/src/parcsr_ls/par_gsmg.c:735:
undefined reference to `dgels_'
$HOME/SOFTWARES/LIBRARIES/PETSc/linux/lib/libHYPRE.a(par_relax.o): In
function `hypre_BoomerAMGRelax':
$HOME/SOFTWARES/LIBRARIES/PETSc/externalpackages/hypre-2.7.0b/src/parcsr_ls/par_relax.c:3135:
undefined reference to `dgetrf_'
$HOME/SOFTWARES/LIBRARIES/PETSc/externalpackages/hypre-2.7.0b/src/parcsr_ls/par_relax.c:3146:
undefined reference to `dgetrs_'
$HOME/SOFTWARES/LIBRARIES/PETSc/linux/lib/libHYPRE.a(schwarz.o): In
function `hypre_AMGNodalSchwarzSmoother':
$HOME/SOFTWARES/LIBRARIES/PETSc/externalpackages/hypre-2.7.0b/src/parcsr_ls/schwarz.c:312:
undefined reference to `dpotrf_'

Any help will be appreciated.

Thanks,
-- 
Amneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120803/583cdd84/attachment.html>


More information about the petsc-users mailing list