<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div><jinzishuai@yahoo.com>&gt; Then my answer is the same as my second answer. To first order, I think the time<br>&gt; is completely negligible, so just use an AIJ matrix. If, after measuring the<br>&gt; performance, you are unhappy, then put the diagonal matrix in a vector and<br>&gt; wrap MatDiagonalScale() in a MatShell.<br>&gt; <br>&gt; &nbsp; Matt<br>Thank you.&nbsp; I think I am OK with AIJ matrix and it is working fine.<br>But I still want to ask the first question about specifying a preconditioning matrix. Right now I am testing a first order element case since I know what it should look like and it should improve performance.&nbsp; But when I do <br><jinzishuai@yahoo.com><br>&gt; &gt; &gt;&nbsp; ierr = KSPSetOperators( solMP, M, lumpedM, SAME_PRECONDITIONER);<br><br>The solver takes
 more iterations to converge.&nbsp; It this the correct way to specify the lumped matrix?<br>Thank you very much.<br><br>Shi<br><br>&gt; &gt; &gt;<br>&gt; &gt; &gt; However, instead of giving faster convergence, it actually takes more<br>&gt; &gt; &gt; iterations to convergence than the regular one. Therefore, I wonder if<br>&gt; &gt; &gt; setting lumpedM as Pmat is the correct way to do it. Could you please<br>&gt; &gt; &gt; advice? I think right now lumpedM is taken as the input to compute the<br>&gt; &gt; &gt; preconditioning matrix, using whatever method is specified by -pc_type .<br>&gt; &gt; &gt; What I really want to do is to simply set lumpedM as the precondition<br>&gt; &gt; &gt; matrix, without spending time to compute anything.<br>&gt; &gt; &gt; Thank you very much.<br></jinzishuai@yahoo.com></jinzishuai@yahoo.com></div><br></div><br>
      <hr size=1>OMG, Sweet deal for Yahoo! users/friends: <a href="http://us.rd.yahoo.com/evt=47520/*http://tc.deals.yahoo.com/tc/blockbuster/text2.com
">Get A Month of Blockbuster Total Access, No Cost.</a> W00t</body></html>