Skip to content
Snippets Groups Projects
Commit 2a2a9c18 authored by Camille Coti's avatar Camille Coti
Browse files

Use the number of foremen.... for real

parent 0cb02798
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ void create_communicators_hierarch( MPI_Comm& COMM_FOREMEN, MPI_Comm& COMM_TEAM
color_foreman is set to 1 if I am the root or a foreman */
int color_foreman, workers_per_foreman;
workers_per_foreman = ceil( (double)( np - 1) / (double)NBFOREMEN );
workers_per_foreman = ceil( (double)( np - 1) / (double)nbforemen );
if( ROOT == rank ) {
color_foreman = 1;
} else {
......
......@@ -39,7 +39,7 @@ real 3m31,034s
MPI_Datatype DT_PARAMETERS;
MPI_Datatype DT_PARAMETERS_2;
int nbforemen; /* Number of foremen to use with the hierarchical M/W */
int nbforemen = NBFOREMEN; /* Number of foremen to use with the hierarchical M/W */
/*******************************************************************************
* Main function *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment