Go to the documentation of this file.
4 #ifndef tools_wroot_mpi_create_basket
5 #define tools_wroot_mpi_create_basket
15 if(!a_mpi.
sunpack(oname))
return 0;
17 if(!a_mpi.
sunpack(otitle))
return 0;
19 uint32 last,nev_buf_size,nev;
20 if(!a_mpi.
unpack(last))
return 0;
21 if(!a_mpi.
unpack(nev_buf_size))
return 0;
22 if(!a_mpi.
unpack(nev))
return 0;
24 int* entry_offset = 0;
26 if(!a_mpi.
bunpack(not_null))
return 0;
29 if(!a_mpi.
unpack(n,entry_offset))
return 0;
32 int* displacement = 0;
34 if(!a_mpi.
bunpack(not_null)) {
delete [] entry_offset;
return 0;}
37 if(!a_mpi.
unpack(n,displacement)) {
delete [] entry_offset;
return 0;}
42 if(!a_mpi.
unpack(_size,_buffer)) {
43 a_out <<
"unpack(buffer) failed."<< std::endl;
44 delete [] entry_offset;
45 delete [] displacement;
55 basket* _basket =
new basket(a_out,a_byte_swap,a_seek_directory,
56 oname,otitle,
"TBasket",a_basket_size,
59 _basket->
set_nev(last,nev_buf_size,nev,entry_offset,displacement);
61 delete [] entry_offset;
62 delete [] displacement;