diff --git a/src/hierarchical.cpp b/src/hierarchical.cpp index 6104e10b810d59a6ca6ccd508ed7feb03f2bd67d..f6f2ca1247db4334358b7efb8bb70568fce44c22 100644 --- a/src/hierarchical.cpp +++ b/src/hierarchical.cpp @@ -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 { diff --git a/src/tensormatrix_mpi.cpp b/src/tensormatrix_mpi.cpp index b720d889b78120510d00975376a3a753ba500139..96289fc110f2106b529bdb97dac464ffd0343837 100644 --- a/src/tensormatrix_mpi.cpp +++ b/src/tensormatrix_mpi.cpp @@ -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 *