On Mon, Aug 18, 2014 at 10:35 AM, Roy Stogner <royst...@ices.utexas.edu> wrote:
>
> allgather_packed_range doesn't need to be Mesh specific - that mesh
> pointer is a generic "context" pointer, necessary for any cases where
> you're also packing data that isn't directly carried with the objects
> (in this case boundary info).

That's what I thought, but then I couldn't figure out how to call
it... is there a simple way to implement the following code snippet:

> Point p(init.comm().rank());
> std::vector<Point> input(1, p);
> std::vector<Point> output;
> init.comm().allgather_packed_range(???, input.begin(), input.end(), 
> std::back_inserter(output));

At the least one would probably need to implement Parallel::pack() and
Parallel::packable_size() for Point?

-- 
John

------------------------------------------------------------------------------
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to