From 483b0c7d587c051a1180fe475edb6a97723a00ce Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 6 Dec 2017 13:16:13 +0100 Subject: [PATCH] [SMPI] Use xbt_die() instead of printf & exit --- src/smpi/internals/smpi_process.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/smpi/internals/smpi_process.cpp b/src/smpi/internals/smpi_process.cpp index db93d3f965..f35b9482bf 100644 --- a/src/smpi/internals/smpi_process.cpp +++ b/src/smpi/internals/smpi_process.cpp @@ -271,8 +271,7 @@ void Process::set_return_value(int val){ void Process::init(int *argc, char ***argv){ if (smpi_process_count() == 0) { - printf("SimGrid was not initialized properly before entering MPI_Init. Aborting, please check compilation process and use smpirun\n"); - exit(1); + xbt_die("SimGrid was not initialized properly before entering MPI_Init. Aborting, please check compilation process and use smpirun\n"); } if (argc != nullptr && argv != nullptr) { smx_actor_t proc = SIMIX_process_self(); -- 2.20.1