Commit 95988d83 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

fix call to mpi_bcast to use the correct index type.


Former-commit-id: b4fbc7573bf94eb2452e0881cf6c4e31ac66bde1
parent 477abb62
......@@ -541,8 +541,13 @@ void engine_repartition ( struct engine *e ) {
}
/* Broadcast the result of the partition. */
#if IDXTYPEWIDTH==32
if ( MPI_Bcast( nodeIDs , nr_cells , MPI_INT , 0 , MPI_COMM_WORLD ) != MPI_SUCCESS )
error( "Failed to bcast the node IDs." );
#else
if ( MPI_Bcast( nodeIDs , nr_cells , MPI_LONG_LONG_INT , 0 , MPI_COMM_WORLD ) != MPI_SUCCESS )
error( "Failed to bcast the node IDs." );
#endif
/* Set the cell nodeIDs and clear any non-local parts. */
for ( k = 0 ; k < nr_cells ; k++ ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment