It's my first time using Boost and is amazing. I'm trying to understand why this simple example bellow don't works as expected:
#include <iostream>
#include <boost/mpi.hpp>
using namespace std;
namespace mpi = boost::mpi;
int main ( int argc, char *argv[] )
{
mpi::environment env( argc, argv );
mpi::communicator world;
mpi::group subgroup( MPI_Group( world.group() ), true );
cout << "I'm process " << world.rank() << endl;
cout << "But in subgroup i'm process " << subgroup.rank() << endl;
cout << "And the subgroup size is... " << subgroup.size() << endl;
return 0;
} // ---------- end of function main ----------