From: Arnaud Giersch Date: Fri, 7 Mar 2014 15:07:32 +0000 (+0100) Subject: Die immediately with an explicit message when MPI_Init was given a NULL parameter. X-Git-Tag: v3_11~242^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5bcff7fabb8e6eb8828648aad599447aadea30a5?ds=sidebyside Die immediately with an explicit message when MPI_Init was given a NULL parameter. --- diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index e90b83a11c..46a46c8de7 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -86,6 +86,8 @@ void smpi_process_init(int *argc, char ***argv) simcall_rdv_set_receiver(data->mailbox_small, proc); XBT_DEBUG("<%d> New process in the game: %p", index, proc); } + if (smpi_process_data() == NULL) + xbt_die("smpi_process_data() returned NULL. You probably gave a NULL parameter to MPI_Init. Although it's required by MPI-2, this is currently not supported by SMPI."); } void smpi_process_destroy(void)