>> What about instead using MPI_Probe on the receiving side to get the message
>> size and resizing the buffer when need be?
> 
> Okay, one more question: what's our definition of "when need be"?  If
> we're willing to shrink as well as enlarge the buffer, then it shouldn't
> hurt to call vector::resize() every time, right?

I agree.  I'd think we always want to resize the vector to the number of
elements received.  I, for one, when calling the recv would like to
immediately loop over the vector without worrying that the end of it may
contain nonsense.  And at any rate, if we *don't* resize() then we have to
return the size in the status object, which seems unnecessarily awkward...

-Ben


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to