From 30c5ffd7032098d03b3838354d5a34b7ac4253fb Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Fri, 13 Sep 2024 14:18:22 +0200 Subject: [PATCH] fix default --- src/operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators.jl b/src/operators.jl index 4aca305f5..7fdaa7779 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -159,7 +159,7 @@ macro RegisterOp(f, T) end import MPI: Op # we can't create a const Op since MPI needs to be initialized? - function Op(::typeof($f), ::Type{<:$T}; iscommutative=true) + function Op(::typeof($f), ::Type{<:$T}; iscommutative=false) op = Op($OP_NULL.val, $(name_fptr)[]) # int MPI_Op_create(MPI_User_function* user_fn, int commute, MPI_Op* op) $API.MPI_Op_create($(name_fptr)[], iscommutative, op)