X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0e9c0448c6566825b170b98ecff716b098bda10e..4bb593c5dd46c9fa83345dc65903620c917317df:/src/smpi/colls/allgather-2dmesh.c diff --git a/src/smpi/colls/allgather-2dmesh.c b/src/smpi/colls/allgather-2dmesh.c index 602d540e11..6bec72d967 100644 --- a/src/smpi/colls/allgather-2dmesh.c +++ b/src/smpi/colls/allgather-2dmesh.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" /***************************************************************************** @@ -120,7 +126,7 @@ smpi_coll_tuned_allgather_2dmesh(void *send_buff, int send_count, MPI_Datatype block_size = extent * send_count; if (!is_2dmesh(num_procs, &X, &Y)) - return MPI_ERR_COMM; + THROWF(arg_error,0, "allgather_2dmesh algorithm can't be used with this number of processes! "); my_row_base = (rank / Y) * Y; my_col_base = rank % Y;