Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Indentation / cosmetics in smpi_base.cpp
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 16 Jun 2016 13:24:50 +0000 (15:24 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 17 Jun 2016 09:27:40 +0000 (11:27 +0200)
src/smpi/smpi_bench.cpp

index c69d32c..8f35300 100644 (file)
@@ -608,9 +608,9 @@ void* smpi_shared_set_call(const char* func, const char* input, void* data) {
 
 
 /** Map a given SMPI privatization segment (make a SMPI process active) */
-void smpi_switch_data_segment(int dest){
-  if (smpi_loaded_page==dest)//no need to switch either
-   return;
+void smpi_switch_data_segment(int dest) {
+  if (smpi_loaded_page == dest)//no need to switch, we've already loaded the one we want
+    return;
 
   // So the job:
   smpi_really_switch_data_segment(dest);