Re: [deal.II] Re: Broadcasting packed objects

2020-06-09 Thread Wolfgang Bangerth
On 6/9/20 2:53 PM, Maurice Rohracker wrote: Thanks, Peter, that helped so far! Another question would be, how would then the serialize function look like if one has another class as a member of a class. So, in this case, how would the serialize function look like if one has a class House and

[deal.II] Re: Broadcasting packed objects

2020-06-09 Thread Maurice Rohracker
Thanks, Peter, that helped so far! Another question would be, how would then the serialize function look like if one has another class as a member of a class. So, in this case, how would the serialize function look like if one has a class House and two of its member are of the type Room? A

[deal.II] Re: Broadcasting packed objects

2020-06-08 Thread 'peterrum' via deal.II User Group
What you could also do is to turn compression off. Peter On Monday, 8 June 2020 14:19:25 UTC+2, peterrum wrote: > > Dear Maurice, > > The problem is that the size of `auto buffer = > dealii::Utilities::pack(r1);` is not the same on all processes, which is a > requirement if you use

[deal.II] Re: Broadcasting packed objects

2020-06-08 Thread 'peterrum' via deal.II User Group
Dear Maurice, The problem is that the size of `auto buffer = dealii::Utilities::pack(r1);` is not the same on all processes, which is a requirement if you use `MPI_Bcast`. My suggestion would to split the procedure into two steps: 1) bcast the size on rank 1; 2) bcast the actual data. Peter