<div class="gmail_quote">On Tue, Sep 20, 2011 at 19:14, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 is a strange combination of PETSc types and MPI types and PETSc styles and MPI styles. The right way to think about what you want is purely in an MPI style.</blockquote></div><br><div>I agree that it would naturally belong at the MPI level. I wrote it this way because IS is a useful thing and MPI doesn't have any such object. In particular, an aggregate MPI_Datatype encodes the type of each entry, but it's useful to be able to push ints through the same pipes as floats, so we'd end up producing an IS-like thingy in this MPI-add-on layer (or have a rather complicated interface with different creation functions for various combinations). I want the same scatter to be able to move different types (to amortize setup and guarantee consistency), so it's not good enough to specify all the types at the time it's created.</div>