2
0
mirror of https://github.com/boostorg/mpi.git synced 2026-02-25 16:32:22 +00:00

Add support for MPI intercommunicators

[SVN r37882]
This commit is contained in:
Douglas Gregor
2007-06-04 14:49:13 +00:00
parent 8cd257f4cb
commit 03e2016cf7
10 changed files with 264 additions and 43 deletions

View File

@@ -19,15 +19,6 @@ group::group(const MPI_Group& in_group, bool adopt)
}
}
group::group(const communicator& comm)
{
MPI_Group gr;
BOOST_MPI_CHECK_RESULT(MPI_Comm_group, ((MPI_Comm)comm, &gr));
if (gr != MPI_GROUP_EMPTY)
group_ptr.reset(new MPI_Group(gr), group_free());
}
optional<int> group::rank() const
{
if (!group_ptr)