X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..cd9affe6152d6bbec19a72ea6fe26ab9407b51b7:/src/smpi/colls/allgather-3dmesh.c diff --git a/src/smpi/colls/allgather-3dmesh.c b/src/smpi/colls/allgather-3dmesh.c index 5a224379c9..ab964a1388 100644 --- a/src/smpi/colls/allgather-3dmesh.c +++ b/src/smpi/colls/allgather-3dmesh.c @@ -1,3 +1,9 @@ +/* Copyright (c) 2013-2014. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include "colls_private.h" /***************************************************************************** @@ -103,7 +109,9 @@ int smpi_coll_tuned_allgather_3dmesh(void *send_buff, int send_count, num_procs = smpi_comm_size(comm); extent = smpi_datatype_get_extent(send_type); - is_3dmesh(num_procs, &X, &Y, &Z); + if (!is_3dmesh(num_procs, &X, &Y, &Z)) + THROWF(arg_error,0, "allgather_3dmesh algorithm can't be used with this number of processes! "); + num_reqs = X;