<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 19, 2016 at 1:50 AM, John Albequerque <span dir="ltr"><<a href="mailto:johncfdcfd@gmail.com" target="_blank">johncfdcfd@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 dir="ltr"><div><div><div>Could someone help me setting up this matrix i.e from preallocation to Set Values for an MPIAIJ matrix which has its entries.<br><b><br>1 1 1 1 0 0 0 0<br>0 1 1 1 1 0 0 0<br>0 0 1 1 1 1 0 0<br>0 0 0 1 1 1 1 0<br>0 0 0 0 1 1 1 1</b><br><br>I am trying to do it from 3 days now but not able to figure it out. Could someone please help me do this.</div></div></div></div></blockquote><div><br></div><div>It will be enough to say that each row has 3 off-diagonal values, so you can use the simplified preallocation rather</div><div>than giving a value for each row individually.</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 dir="ltr"><div>Thanks.<br><br>----<br></div>John Albequerque.<br><div><br><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="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>