Re: [Boost-bugs] [Boost C++ Libraries] #5596: MPI: problem creating communicator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5596: MPI: problem creating communicator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-13 12:18:29


#5596: MPI: problem creating communicator
----------------------------------------+-----------------------------------
  Reporter: irek.szczesniak@… | Owner: dgregor
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: mpi
   Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------+-----------------------------------

Comment (by monika.cienkus@…):

 It's strange but dynamically created communicator work fine.


 {{{
 #include <vector>
 #include <boost/mpi.hpp>
 namespace mpi = boost::mpi;
 int main(int argc, char argv[])
 {
    mpi::environment env(argc, argv);
    mpi::communicator world, c;

    std::vector<int> v(1);
    mpi::group wg = world.group();
    mpi::group g = wg.include(v.begin(), v.end());
    c = new mpi::communicator(world, g);

    if (!world.rank()){
       std::cout << "v.size : " << v.size() << std::endl;
       std::cout << "wg.size : " << wg.size() << std::endl;
       std::cout << "g.size : " << g.size() << std::endl;
       std::cout << "c.size : " << c->size() << std::endl;
 }

 return 0;
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5596#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC