<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I will check that. I am preallocating but it may be that I am not
allocating big enough. I still have to figure out nuance
differences between these formats to solve the bugs. I appreciate
your answer and hope Satish knows it.</p>
<p>Thank you,<br>
Abdullah Ali Sivas<br>
</p>
<br>
<div class="moz-cite-prefix">On 2016-10-25 12:15 PM, Matthew Knepley
wrote:<br>
</div>
<blockquote
cite="mid:CAMYG4GkZzVo06VbYQHyFUg7P65=HApTkmfp3B36FChaNZdyUVw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Tue, Oct 25, 2016 at 10:54 AM,
Abdullah Ali Sivas <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:abdullahasivas@gmail.com" target="_blank">abdullahasivas@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 bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>I want to use PETSc with mfem and I know that mfem
people will figure out a way to do it in few months.
But for now as a temporary solution I just thought of
converting hypre PARCSR matrices (that is what mfem
uses as linear solver package) into PETSc MPIAIJ
matrices and I have a semi-working code with some
bugs. Also my code is dauntingly slow and seems like
not scaling. I have used <span
class="m_-7064235882861519930st"><em>MatHYPRE_IJMatrixCopy
</em>from myhp.c of PETSc and <i>hypre_ParCSRMatrixPrintIJ</i>
from par_csr_matrix.c of hypre as starting points.
Before starting I checked whether there was anything
done similar to this, I could not find anything.</span></p>
<p><span class="m_-7064235882861519930st">My question
is, are you aware of such a conversion code (i.e.
something like <i>hypre_ParCSRtoPETScMPIAIJ(
hypre_ParCSRMatrix *matrix, </i><i>Mat *A</i>)?</span></p>
</div>
</blockquote>
<div>No, but maybe Satish knows. Slow running times most
likely come from lack of preallocation for the target
matrix.</div>
<div><br>
</div>
<div> Thanks,</div>
<div><br>
</div>
<div> Matt</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p><span class="m_-7064235882861519930st"> Thanks in
advance,<br>
Abdullah Ali Sivas<br>
</span></p>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">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>
</div>
</blockquote>
<br>
</body>
</html>