A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
please sonar a tiny bit
[simgrid.git]
/
src
/
smpi
/
smpi_op.hpp
diff --git
a/src/smpi/smpi_op.hpp
b/src/smpi/smpi_op.hpp
index
55e2c42
..
a11d3c9
100644
(file)
--- a/
src/smpi/smpi_op.hpp
+++ b/
src/smpi/smpi_op.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009-2010, 2012-201
4
. The SimGrid Team.
+/* Copyright (c) 2009-2010, 2012-201
7
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-14,17
+14,19
@@
namespace simgrid{
namespace smpi{
namespace simgrid{
namespace smpi{
-class Op {
+class Op
: public F2C
{
private:
MPI_User_function *func_;
bool is_commutative_;
bool is_fortran_op_;
public:
private:
MPI_User_function *func_;
bool is_commutative_;
bool is_fortran_op_;
public:
+
Op(MPI_User_function * function, bool commutative);
bool is_commutative();
bool is_fortran_op();
void set_fortran_op();
Op(MPI_User_function * function, bool commutative);
bool is_commutative();
bool is_fortran_op();
void set_fortran_op();
- void apply(void *invec, void *inoutvec, int *len, MPI_Datatype * datatype);
+ void apply(void *invec, void *inoutvec, int *len, MPI_Datatype datatype);
+ static Op* f2c(int id);
};
}
};
}