Ticket #5596: test.cpp
| File test.cpp, 377 bytes (added by , 11 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <vector> |
| 2 | #include <boost/mpi.hpp> |
| 3 | |
| 4 | namespace mpi = boost::mpi; |
| 5 | |
| 6 | int main(int argc, char* argv[]) |
| 7 | { |
| 8 | mpi::environment env(argc, argv); |
| 9 | mpi::communicator world; |
| 10 | |
| 11 | if (!world.rank()) |
| 12 | { |
| 13 | std::vector<int> v(1); |
| 14 | mpi::group wg = world.group(); |
| 15 | mpi::group g = wg.include(v.begin(), v.end()); |
| 16 | mpi::communicator c(world, g); |
| 17 | } |
| 18 | |
| 19 | return 0; |
| 20 | } |
