Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
seems needed here.
authordegomme <augustin.degomme@unibas.ch>
Thu, 13 Apr 2017 07:34:23 +0000 (09:34 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Thu, 13 Apr 2017 07:34:46 +0000 (09:34 +0200)
src/smpi/smpi_op.cpp

index 9d14284..805647b 100644 (file)
@@ -238,7 +238,7 @@ void Op::set_fortran_op()
 
 void Op::apply(void *invec, void *inoutvec, int *len, MPI_Datatype datatype)
 {
-  if(smpi_privatize_global_variables){//we need to switch as the called function may silently touch global variables
+  if(smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP){//we need to switch as the called function may silently touch global variables
     XBT_DEBUG("Applying operation, switch to the right data frame ");
     smpi_switch_data_segment(smpi_process()->index());
   }