Skip to content

Commit

Permalink
MPI join-copy doesn't resize the target container. #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Germroth committed Aug 6, 2013
1 parent 4ca41e6 commit 9715826
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/numeric/odeint/test_external/mpi/split_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ BOOST_AUTO_TEST_CASE( split_test )
}

// copy back to master
if(world.rank() == 0) out_data.resize(in_data.size());
copy( state, out_data );

if(world.rank() == 0) {
if(world.rank() == 0)
BOOST_REQUIRE_EQUAL_COLLECTIONS(in_data.begin(), in_data.end(), out_data.begin(), out_data.end());
} else {
BOOST_REQUIRE(out_data.size() == 0);
}
}


Expand Down

0 comments on commit 9715826

Please sign in to comment.