<div dir="ltr"><div dir="ltr">On Thu, Apr 11, 2019 at 9:58 AM Klaij, Christiaan <<a href="mailto:C.Klaij@marin.nl">C.Klaij@marin.nl</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>Just like Manuel Colera Rico, I would like to begin with existing<br>
(sub)matrices and put them directly into a matnest.<br>
<br>
You seem to have understood that problem from the archive 2.5<br>
years ago... If my memory is correct, it was an attempt to<br>
create a mat and switch between -mat_type nest and aij on the<br>
command line.<br>
</p>
<p><span style="font-size:12pt"></span></p></div></blockquote><div>Okay, I will make an example once I get back from my trip and fix anything that does not work. <br></div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" style="font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif"><p><span style="font-size:12pt">Chris</span><br></p>
<div style="color:rgb(33,33,33)"></div>
<br>
<font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">dr. ir.</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">Christiaan</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">Klaij</font><font size="3" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold"> |
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">Senior Researcher</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold"> |
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125);font-weight:bold">Research & Development</font><br>
<font style="font-family:Verdana;font-size:9pt;color:rgb(125,125,125);font-weight:bold">MARIN</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125)"> | T
</font><font style="font-family:Verdana;font-size:8pt;color:rgb(125,125,125)">+31 317 49 33 44</font><font color="#7d7d7d" size="2" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt"> |
</font><span style="font-family:Verdana;font-size:8pt"><a href="mailto:C.Klaij@marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">C.Klaij@marin.nl</span></a></span><font color="#7d7d7d" size="2" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt"> |
</font><span style="font-family:Verdana;font-size:8pt"><a href="http://www.marin.nl" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">www.marin.nl</span></a></span><br>
<br>
<a href="https://www.linkedin.com/company/marin" target="_blank"><img width="16" height="16" style="border: 0px solid;" src="cid:16a0cb26be438d003c61" alt="LinkedIn"></a> <a href="http://www.youtube.com/marinmultimedia" target="_blank"><img width="16" height="16" style="border: 0px solid;" src="cid:16a0cb26be4e1f14f562" alt="YouTube"></a> <a href="https://twitter.com/MARIN_nieuws" target="_blank"><img width="16" height="16" style="border: 0px solid;" src="cid:16a0cb26be4fa1900993" alt="Twitter"></a> <a href="https://www.facebook.com/marin.wageningen" target="_blank"><img width="16" height="16" style="border: 0px solid;" src="cid:16a0cb26be4c98a64004" alt="Facebook"></a><br>
<font style="font-family:Verdana;font-size:8pt" color="#7d7d7d" size="2" face="Verdana">MARIN news:
<font style="font-family:Verdana;font-size:8pt"><span style="font-family:Verdana;font-size:8pt"><a href="http://www.marin.nl/web/News/News-items/First-autonomous-manoeuvring-vessel-trials-held-on-North-Sea.htm" title="" style="font-family:Verdana;font-size:8pt" target="_blank"><span style="font-family:Verdana;font-size:8pt">First
 autonomous manoeuvring vessel trials held on North Sea</span></a></span></font></font>
<p></p>
<p></p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="gmail-m_2542068544567494320divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>><br>
<b>Sent:</b> Thursday, April 11, 2019 2:16 PM<br>
<b>To:</b> Klaij, Christiaan<br>
<b>Cc:</b> <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a><br>
<b>Subject:</b> Re: [petsc-users] Error with KSPSetUp and MatNest</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">On Thu, Apr 11, 2019 at 7:51 AM Klaij, Christiaan via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Matt,<br>
<br>
As a happy MATNEST user, I got a bit worried when you wrote "we<br>
should remove MatCreateNest() completely". </blockquote>
<div><br>
</div>
<div>This would not remove any of the Nest functionality, just the direct interface to it, which is the problem.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
This happened last<br>
time I tried to use AIJ instead:<br>
<br>
<a href="https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2016-August/029973.html" target="_blank">https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2016-August/029973.html</a><br>
<br>
Has this problem been fixed in the meantime?<br>
</blockquote>
<div><br>
</div>
<div>This looks like a problem with the Nest implementation, not AIJ? Maybe I am misunderstanding it.</div>
<div><br>
</div>
<div>   Thanks,</div>
<div><br>
</div>
<div>     Matt</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Chris<br>
<br>
> I think we should remove MatCreateNest() completely. We should have 1<br>
> mechanism for getting submatrices for creation, not 2, so we retain<br>
> MatCreateLocalRef(). Then if -mat_type nest was specified, it gives you<br>
> back an actually submatrix, otherwise it gives a view. This would do<br>
> everything that we currently do without this horrible MatNest interface<br>
> bubbling to the top.<br>
><br>
>    Matt<br>
><br>
<br>
<br>
dr. ir. Christiaan Klaij  | Senior Researcher | Research & Development<br>
MARIN | T +31 317 49 33 44 | mailto:<a href="mailto:C.Klaij@marin.nl" target="_blank">C.Klaij@marin.nl</a> |
<a href="http://www.marin.nl" target="_blank">http://www.marin.nl</a><br>
<br>
MARIN news: <a href="http://www.marin.nl/web/News/News-items/42nd-FPSO-JIP-Week-April-812-Singapore.htm" target="_blank">
http://www.marin.nl/web/News/News-items/42nd-FPSO-JIP-Week-April-812-Singapore.htm</a><br>
<br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail-m_2542068544567494320gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>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><br>
</div>
<div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<font style="background-color:rgb(255,255,255)">
<p align="center"><font style="background-color:rgb(255,255,255)"><b>Help us improve the spam filter. If this message contains SPAM, click
<a href="https://www.mailcontrol.com/sr/VaxGuPX0yKPGX2PQPOmvUqEZpHzWxmiI7TcWSqBM5JDxEDemOSATW7gNYv05LkIR8iuercSaQ0xkxH4nYzTQYQ==" target="_blank">
here</a> to report. Thank you, MARIN Support Group</b></font></p>
</font></div>
</div>
<u></u>
<p></p>
<u></u><u></u><u></u>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>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><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>