2011/2/18 Gong Ding <span dir="ltr">&lt;<a href="mailto:gdiso@ustc.edu">gdiso@ustc.edu</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
After update my FVM code to support higher order, I have to preallocate more memory when creating the matrix. However, only a few cells (determined at run time) needed to be high order, thus preallocated memory is overkill too much.<br>

<br>
Is it possible to add a function to reassemble the AIJ matrix to free the extra memory?<br>
Or it has already done when MatAssembly is called?<br></blockquote><div><br></div><div>This is done during MatAssemblyEnd(). However, there is no guarantee that the operating system</div><div>actually returns that memory to general use.</div>
<div><br></div><div>   Matt</div><div> </div></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>