MPI_Op object.
More...
#include <Teuchos_MpiReductionOpSetter.hpp>
Public Member Functions | |
| MpiReductionOpSetter (const Teuchos::RefCountPtr< const MpiReductionOpBase > &reduct_op) | |
Construct a new MPI_Op object which uses the passed in reduct_op objects. | |
| ~MpiReductionOpSetter () | |
| | |
| MPI_Op | mpi_op () const |
MPI_Op object.
The destructor to this object will remove the set MPI-compatible reduction operation.
Note, this object can only be allocated on the stack and should be used directly before a call to any MPI function that takes an MPI_Op object. For example:
???
Note that this class can only be used in a program where MPI is called from only one thread.
Note, HAVE_MPI must be defined to use this class!.
Definition at line 109 of file Teuchos_MpiReductionOpSetter.hpp.
|
|
Construct a new Preconditions:
Postconditions:
Definition at line 113 of file Teuchos_MpiReductionOpSetter.cpp. |
|
|
Definition at line 123 of file Teuchos_MpiReductionOpSetter.cpp. |
|
|
Return the created
Note, this reduction function object will only be valid while Definition at line 128 of file Teuchos_MpiReductionOpSetter.cpp. |
1.3.9.1