From d13c9d1f8749fef6e154d86e14c205ef64c3abaa Mon Sep 17 00:00:00 2001 From: piacibel <cyrille.piacibello@inria.fr> Date: Thu, 19 Jun 2014 16:00:40 +0200 Subject: [PATCH] Changes for init ptr to 0 --- Src/Utils/FMpi.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Src/Utils/FMpi.hpp b/Src/Utils/FMpi.hpp index 1dc73354f..190c41de5 100755 --- a/Src/Utils/FMpi.hpp +++ b/Src/Utils/FMpi.hpp @@ -237,12 +237,12 @@ public: [[13237,1],1][btl_openib_component.c:3227:handle_wc] from fourmi062 to: fourmi056 error polling LP CQ with status LOCAL LENGTH ERROR status number 1 for wr_id 7134664 opcode 0 vendor error 105 qp_idx 3 Tous on la meme erreur le 2e 1 est remplace par le rang. */ - FMpi( ) : communicator(0) { + FMpi() : communicator(nullptr) { int provided = 0; FMpi::Assert( MPI_Init_thread(NULL,NULL, MPI_THREAD_SERIALIZED, &provided), __LINE__); communicator = new FComm(MPI_COMM_WORLD); } - FMpi(int inArgc, char ** inArgv ) : communicator(0) { + FMpi(int inArgc, char ** inArgv ) : communicator(nullptr) { int provided = 0; FMpi::Assert( MPI_Init_thread(&inArgc,&inArgv, MPI_THREAD_SERIALIZED, &provided), __LINE__); communicator = new FComm(MPI_COMM_WORLD); @@ -298,7 +298,7 @@ public: //////////////////////////////////////////////////////////// /** generic mpi assert function */ - static void Assert(const int test, const unsigned line, const char* const message = 0){ + static void Assert(const int test, const unsigned line, const char* const message = nullptr){ if(test != MPI_SUCCESS){ printf("[ERROR-QS] Test failled at line %d, result is %d", line, test); if(message) printf(", message: %s",message); @@ -332,9 +332,9 @@ public: } /** assert if mpi error */ - static void MpiAssert(const int test, const unsigned line, const char* const message = 0){ + static void MpiAssert(const int test, const unsigned line, const char* const message = nullptr){ if(test != MPI_SUCCESS){ - printf("[ERROR] Test failled at line %d, result is %d", line, test); + printf("[ERROR] Test failed at line %d, result is %d", line, test); if(message) printf(", message: %s",message); printf("\n"); fflush(stdout); -- GitLab