<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">No, I didn't miss Jed's point. I know
exactly, what you are talking about. My point is, that I can
either write a preamble of 100 lines, which nobody is interested
in, why I MUST HAVE a MatNest in this case and than ask how to
convert to a MatAIJ (as I mentioned, this conversion is for
debugging only!), or I can just save my and your time and ask
directly. But still thank you very much for spending your time to
help me in using PETSc!!!<br>
<br>
Thomas<br>
<br>
Am 10.10.2012 15:48, schrieb Matthew Knepley:<br>
</div>
<blockquote
cite="mid:CAMYG4GmKh=22G4Ak7VNjbU_tXK2-KoWvE9b-bj-Y9HUhANW=Vg@mail.gmail.com"
type="cite">On Wed, Oct 10, 2012 at 9:45 AM, Thomas Witkowski <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:thomas.witkowski@tu-dresden.de" target="_blank">thomas.witkowski@tu-dresden.de</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>You are right. But what if a have a MATNEST and i must
convert it to MATAIJ. Any better way than what I wrote in
my first mail?<br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>I think you miss Jed's point. You should NEVER have a
MATNEST. You should have a Mat. Its type</div>
<div>should be determined by MatSetFromOptions(). If you want
MATAIJ, you give -mat_type aij, and if you</div>
<div>want MATNEST, you give -mat_type nest.</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">
<div text="#000000" bgcolor="#FFFFFF">
<div> Thomas<br>
<br>
Am 10.10.2012 15:33, schrieb Jed Brown:<br>
</div>
<blockquote type="cite">
<p>The best way, by far, is to assemble the matrix as AIJ
if that is what you want to use. See
MatGetLocalSubMatrix and SNES ex28. Using MATNEST should
he a run-time choice.</p>
<div class="gmail_quote">On Oct 10, 2012 8:30 AM, "Thomas
Witkowski" <<a moz-do-not-send="true"
href="mailto:thomas.witkowski@tu-dresden.de"
target="_blank">thomas.witkowski@tu-dresden.de</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Is
there a fast way to convert a MatNest to a MatAIJ? I
tried to use MatConvert, but it seems that this
convert is not yet implemented. As I need this
functionality to factorize the nested matrix with
MUMPS, is there any better way than to extract the
nested matrices, iterate over all rows of these
matrices and use MatSetValues to add them again to the
final MatAIJ?<br>
<br>
Thomas<br>
</blockquote>
</div>
</blockquote>
<br>
</div>
</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<br>
</blockquote>
<br>
</body>
</html>