<div class="gmail_quote">On Fri, Feb 24, 2012 at 04:43, Mohammad Mirzadeh <span dir="ltr">&lt;<a href="mailto:mirzadeh@gmail.com">mirzadeh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Bojan. I suppose that would work. Problem arises, however, when the actual application numbering matters and you have to preserve it somehow. One example, is where you have a library that is currently sequential and a lot of functionality is directly based on the data structure used for the grid. For example when computing derivatives or performing interpolation and so on.</blockquote>
</div><br><div>That serial library probably needs the local numbering anyway, if you give it the global indices, it won&#39;t be able to access those locations (at least not without a translation step that they did not write). It&#39;s better to build the data structure in terms of local indices.</div>