<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 8, 2015 at 4:04 PM, Ganesh Vijayakumar <span dir="ltr"><<a href="mailto:ganesh.iitm@gmail.com" target="_blank">ganesh.iitm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello,<br> <br></div>  I have a CFD application where some entries of the matrix change every time step. However, the total number of non-zero elements never changes. Is there anyway I can efficiently do this. My current attempts at doing this results in running over the total initial memory allocation very soon.</div></div></blockquote><div><br></div><div>If you know where the next elements will be, you can overallocate and fill those entries with zeros. If not,</div><div>then we do not have a good dynamics data structure. This could be done with hash tables I think, but we</div><div>have not had a call for it.</div><div><br></div><div>  Thanks,</div><div><br></div><div>    Matt</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="HOEnZb"><font color="#888888">ganesh</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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</div>
</div></div>