<div class="gmail_quote">On Tue, Jun 21, 2011 at 18:56, Aron Ahmadia <span dir="ltr"><<a href="mailto:aron.ahmadia@kaust.edu.sa">aron.ahmadia@kaust.edu.sa</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
PETSc could also just provide a VecReduce and VecReduceStride operation, which might simplify the programming effort a bit.</blockquote></div><br><div>That would be neat, especially if it used MPI_Op for the reduction. You would need MPI-2.2 to have MPI_Reduce_local() for user-defined operations, but it would be more flexible and less code than the current approach.</div>