From: Pierre-Nicolas Clauss Date: Wed, 4 May 2011 07:58:46 +0000 (+0200) Subject: Be a little more verbose before aborting. X-Git-Tag: exp_20120216~195^2~53 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d53431528f4a3831cf152f932b36e80a86083113?ds=sidebyside Be a little more verbose before aborting. --- diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index 1b98966471..ad839cbbf5 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include +#include #include #include "private.h" @@ -98,6 +99,7 @@ int smpi_global_size(void) { char* value = getenv("SMPI_GLOBAL_SIZE"); if(!value) { + fprintf(stderr, "Please set env var SMPI_GLOBAL_SIZE to expected number of processes.\n"); abort(); } return atoi(value);