<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 21, 2013 at 5:48 PM, Amneet Bhalla <span dir="ltr"><<a href="mailto:mail2amneet@gmail.com" target="_blank">mail2amneet@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 id=":3e1">Jed, so to use VecGetSubVector() with a regular Vec; it would need to set Vec->map->bs = no_of_components<div>
that I want to solve for? I understand that a wrapper code needs to be written for gelling SAMRAI data field and PETSc Vec; I am referring to such vector wrapper here. <div class="yj6qo ajU"><div id=":nf" class="ajR" tabindex="0">
</div></div></div></div></blockquote></div><br><br></div><div class="gmail_extra">No, you should never touch vec->map->bs directly in any circumstance and it's totally wrong semantically here. You just need to define index sets for the pieces.<br>
</div></div>