Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add plenty more checks to MPI collectives, to comply with the standard.
[simgrid.git] / src / smpi / include / smpi_op.hpp
index c0eb212..dcc39c3 100644 (file)
@@ -17,9 +17,10 @@ class Op : public F2C{
   bool is_commutative_;
   bool is_fortran_op_ = false;
   int refcount_ = 1;
+  bool predefined_;
 
 public:
-  Op(MPI_User_function* function, bool commutative) : func_(function), is_commutative_(commutative) {}
+  Op(MPI_User_function* function, bool commutative, bool predefined=false) : func_(function), is_commutative_(commutative), predefined_(predefined) {}
   bool is_commutative() { return is_commutative_; }
   bool is_fortran_op() { return is_fortran_op_; }
   // tell that we were created from fortran, so we need to translate the type to fortran when called