diff --git a/src/hierarchical.cpp b/src/hierarchical.cpp index f6f2ca1247db4334358b7efb8bb70568fce44c22..0b310b5cc9a1f9ab14c91f312dcd17955d7a2e67 100644 --- a/src/hierarchical.cpp +++ b/src/hierarchical.cpp @@ -38,7 +38,8 @@ void create_communicators_hierarch( MPI_Comm& COMM_FOREMEN, MPI_Comm& COMM_TEAM MPI_Comm_split( MPI_COMM_WORLD, color_foreman, rank, &COMM_FOREMEN ); /* Create the communicator between the workers and their foreman */ - + /* There is one problematic case here: when the last foreman ends up alone in its communicator */ + int color_team; if( ROOT == rank ) { color_team = 0;