<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 8, 2014 at 1:19 PM, Ghosh, Swarnava <span dir="ltr"><<a href="mailto:sghosh2012@gatech.edu" target="_blank">sghosh2012@gatech.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
    I am using petsc 3.4.1 interfaced with hypre 2.9.0b<br>
<br>
    I am using the following lines of code to solve a Poisson equation using KSPGMRES with HYPRE preconditioner.<br>
    pOfdft->laplaceOpr is a sparse matrix in MATMPIBAIJ format.<br>
<br>
  KSPCreate(PETSC_COMM_WORLD,&pOfdft->ksp);<br>
  KSPSetType(pOfdft->ksp,KSPGMRES);<br>
  KSPSetTolerances(pOfdft->ksp,KSPTOL,PETSC_DEFAULT,PETSC_DEFAULT,PETSC_DEFAULT);<br>
  KSPSetOperators(pOfdft->ksp,pOfdft->laplaceOpr,pOfdft->laplaceOpr,SAME_NONZERO_PATTERN);<br>
  KSPGetPC(pOfdft->ksp,&pOfdft->pc);<br>
  PCSetType(pOfdft->pc,PCHYPRE);<br>
  PCHYPRESetType(pOfdft->pc,"boomeramg");<br>
  KSPSetFromOptions(pOfdft->ksp);<br>
  KSPSetUp(pOfdft->ksp);<br>
<br>
    The code runs fine when the size of matrix is small (4096 X 4096).<br>
    BUT the code remains stuck in KSPSetUp function when the size of matrix is bigger (262144 x262144) on 64 cores 120 gb ram.<br>
<br>
   Could you please let me know the probable reason the why the code is hanging in KSPSetUp.<br>
   If possible could you please share some C examples where you use a HYPRE preconditioner for solving a large system<br></blockquote><div><br></div><div>To me it sounds like Hypre is not "hanging up", but "taking a long time". Hypre can have a large setup time compared to some</div>
<div>other types of MG, for example agglomeration. You could compare using -pc_type gamg.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks,<br>
Swarnava<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Swarnava Ghosh<br>
PhD Candidate,<br>
Structural Engineering, Mechanics and Materials<br>
School of Civil and Environmental Engineering<br>
Georgia Institute of Technology<br>
Atlanta, GA 30332<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>