Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Be a little more verbose before aborting.
authorPierre-Nicolas Clauss <pini@tuxfamily.org>
Wed, 4 May 2011 07:58:46 +0000 (09:58 +0200)
committerPierre-Nicolas Clauss <pini@tuxfamily.org>
Wed, 4 May 2011 07:58:46 +0000 (09:58 +0200)
src/smpi/smpi_global.c

index 1b98966..ad839cb 100644 (file)
@@ -5,6 +5,7 @@
   * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include <stdint.h>
+#include <stdio.h>
 #include <stdlib.h>
 
 #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);