From dca78d0426c59e786f1633ef14b3c8b99ab7e9e0 Mon Sep 17 00:00:00 2001 From: degomme Date: Thu, 13 Apr 2017 09:34:23 +0200 Subject: [PATCH] seems needed here. --- src/smpi/smpi_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/smpi_op.cpp b/src/smpi/smpi_op.cpp index 9d14284567..805647bb61 100644 --- a/src/smpi/smpi_op.cpp +++ b/src/smpi/smpi_op.cpp @@ -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()); } -- 2.20.1