Ticket #6436: aelaguizy_mpi_comm_null.patch

File aelaguizy_mpi_comm_null.patch, 565 bytes (added by aelaguiz@…, 11 years ago)

better fix

  • libs/mpi/src/communicator.cpp

    diff -dur ../boost_1_48_0_orig/libs/mpi/src/communicator.cpp libs/mpi/src/communicator.cpp
    old new  
    6363  MPI_Comm newcomm;
    6464  BOOST_MPI_CHECK_RESULT(MPI_Comm_create,
    6565                         ((MPI_Comm)comm, (MPI_Group)subgroup, &newcomm));
    66   comm_ptr.reset(new MPI_Comm(newcomm), comm_free());
     66  communicator(*new MPI_Comm(newcomm), comm_take_ownership);
    6767}
    6868
    6969int communicator::size() const