<div dir="ltr"><div>Why not just put zeros in the composite non-zero pattern before you assemble it the first time?<br></div>Then call MatZeroEntries whenever you want to reassemble.<br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, Mar 14, 2013 at 1:28 PM, Sanjay Govindjee <span dir="ltr"><<a href="mailto:s_g@berkeley.edu" target="_blank">s_g@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a mechanism for resetting a matrix's non-zero pattern?<br>
<br>
In particular,  I have a preallocated a matrix, set the values, and assembled it.<br>
And used it to solve a problem.<br>
<br>
Now I would like to zero it, and reassemble it with a different non-zero pattern.<br>
Note the matrix has been preallocated so that it can accommodate both non-zero<br>
patterns.<span class="HOEnZb"><font color="#888888"><br>
<br>
-sanjay<br>
</font></span></blockquote></div><br></div>