<div class="gmail_quote">On Tue, Jun 7, 2011 at 20:41, Boyce Griffith <span dir="ltr"><<a href="mailto:griffith@cims.nyu.edu">griffith@cims.nyu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Nope; to keep SAMRAI stuff working like regular SAMRAI stuff, the ghost values wind up in the middle of the vector.  At least with the standard data types, local data storage, including ghost cells, for each patch is contiguous.</blockquote>
</div><br><div>That's what I figured. Do you access multiple patches at the same time, or do you usually get a patch with ghost values set, compute on that patch, then move to the next one? If the latter, the iterator should be able to pull out of contiguous storage into a patch-local space.</div>