#include #include #include #include #include #include #include #include #include using namespace triqs::params; int main(int argc, char* argv[]) { boost::mpi::environment env(argc, argv); boost::mpi::communicator world; parameters P; P.add_field("a", 1, "?") .add_field("d", 2.0, "") .add_field("s", "", ""); if (world.rank() == 0) { P["a"] = long(1); P["d"] = 2.7; P["s"] = std::string("-14.3"); } /* * WITH SERIALIZATION std::cout << "Before bcast rank " << world.rank() << " : " << P << std::endl ; boost::mpi::broadcast(world,P,0); std::cout << "After bcast rank " << world.rank() << " : " << P << std::endl ; */ return 0; }