<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.<br></div><br><br></div>Thanks.<br><br>----<br></div>John Albequerque.<br><div><br><br></div></div>