Ticket #6436: aelaguizy_mpi_comm_null.patch
File aelaguizy_mpi_comm_null.patch, 565 bytes (added by , 11 years ago) |
---|
-
libs/mpi/src/communicator.cpp
diff -dur ../boost_1_48_0_orig/libs/mpi/src/communicator.cpp libs/mpi/src/communicator.cpp
old new 63 63 MPI_Comm newcomm; 64 64 BOOST_MPI_CHECK_RESULT(MPI_Comm_create, 65 65 ((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); 67 67 } 68 68 69 69 int communicator::size() const