<div class="gmail_quote">On Mon, Oct 17, 2011 at 20:55, Vijay S. Mahadevan <span dir="ltr"><<a href="mailto:vijay.m@gmail.com">vijay.m@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=":1mi">Actually, that is quite consistent in philosophy to the merge<br>
operation I'm trying to perform. SEQ->MPI might still be an invalid<br>
operation for Vec though. Perhaps with a PETSC_DECIDE for local, it<br>
still could be relevant ? You can definitely specialize this for<br>
MPI->SEQ and Nest Vectors with a new VecReuse enum with relevant<br>
names.</div></blockquote></div><br><div>I would not try to simultaneously change the distribution of the Vec. That's what VecScatter is for. VecConvert() would keep the same distribution and give you back a semantically identical vector of a different type.</div>