Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Fix if() condition to verbose comparison.
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 27 May 2016 12:54:02 +0000 (14:54 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 27 May 2016 12:54:02 +0000 (14:54 +0200)
src/smpi/smpi_pmpi.cpp

index 729c51a..4d87717 100644 (file)
@@ -27,7 +27,7 @@ int PMPI_Init(int *argc, char ***argv)
   // PMPI_Init is call only one time by only by SMPI process
   int already_init;
   MPI_Initialized(&already_init);
-  if(!(already_init)){
+  if(already_init == 0){
     smpi_process_init(argc, argv);
     smpi_process_mark_as_initialized();
     int rank = smpi_process_index();