On Fri, Dec 9, 2011 at 6:13 PM, Xiangdong Liang <span dir="ltr">&lt;<a href="mailto:xdliang@gmail.com">xdliang@gmail.com</a>&gt;</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;">
On Fri, Dec 9, 2011 at 7:02 PM, Barry Smith &lt;<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>&gt; wrote:<br>
&gt;<br>
&gt; On Dec 9, 2011, at 5:55 PM, Xiangdong Liang wrote:<br>
&gt;<br>
&gt;&gt; Hello everyone,<br>
&gt;&gt;<br>
&gt;&gt; I am solving Ax=b with sparse direct solver Pastix. I have two<br>
&gt;&gt; equivalent A&#39;s (upto these zero entries): A1 and A2. A1 is generated<br>
&gt;&gt; with ignor_zero_entries and A2 is without this option. For example A1<br>
&gt;&gt; has 9 millions nonzeros, while A2 has 10 millions zeros. When I solve<br>
&gt;&gt; them with Pastix, I found the time for solving sparser A1 actually is<br>
&gt;&gt; longer (10%--20% worse) than A2. Does anyone have thoughts on this?<br>
&gt;<br>
&gt;   Completely possible and not particularly surprising. The amount of work required for sparse LU depends in an incrediably complicated way on the nonzero structure of the matrix, it is only very very minorly related to the number of nonzeros in the matrix.<br>

&gt;   One fun thing to check would be the number of nonzeros in the factor of A1 and the number of nonzeros in the factor of A2. (I&#39;m not sure if Pastix has a way to check this).<br>
<br>
Should the nnz in the factor of A1 be the same as nnz in the factor of<br>
A2 since A1 and A2 are the same matrices except some zeros (due to<br>
ignore_zero_entries in the matrix assembling)?<br></blockquote><div><br></div><div>nnz is structural, and has nothing to do with numeric values.</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;">

Xiangdong<br>
<br>
&gt;<br>
&gt;   Barry<br>
&gt;<br>
&gt;&gt; Thanks.<br>
&gt;&gt;<br>
&gt;&gt; Xiangdong<br>
&gt;&gt;<br>
&gt;&gt; P.S. The time I count is only for Spare LU solving (not including the<br>
&gt;&gt; matrix assembling time).<br>
&gt;<br>
</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>