X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2bf42881ff8e158f7d9e7683d52725e42668dd24..bad5891a4d5a2d97e1dea926cb640f516c1fae0c:/src/smpi/colls/allgather/allgather-2dmesh.cpp diff --git a/src/smpi/colls/allgather/allgather-2dmesh.cpp b/src/smpi/colls/allgather/allgather-2dmesh.cpp index 0a774ada87..e1810a32bd 100644 --- a/src/smpi/colls/allgather/allgather-2dmesh.cpp +++ b/src/smpi/colls/allgather/allgather-2dmesh.cpp @@ -53,7 +53,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * Function: is_2dmesh - * Return: int + * Return: bool * Inputs: num: the number of processors in a communicator @@ -66,7 +66,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ****************************************************************************/ #ifndef TWOD #define TWOD -static int is_2dmesh(int num, int *i, int *j) +static bool is_2dmesh(int num, int* i, int* j) { int x, max = num / 2; x = sqrt(double(num)); @@ -82,11 +82,11 @@ static int is_2dmesh(int num, int *i, int *j) *j = x; } - return 1; + return true; } x++; } - return 0; + return false; } #endif /*****************************************************************************