42 #ifndef TEUCHOS_MPI_REDUCTION_OP_SETTER_HPP
43 #define TEUCHOS_MPI_REDUCTION_OP_SETTER_HPP
46 #include "Teuchos_ReductionOp.hpp"
66 ,MPI_Datatype *datatype
73 template<
typename Ordinal>
83 ,MPI_Datatype *datatype
96 template<
typename Ordinal>
149 MPI_Op mpi_op()
const;
161 template<
typename Ordinal>
168 template<
typename Ordinal>
173 ,MPI_Datatype *datatype
187 MPI_Type_size(*datatype, &sz);
189 *len*sz,reinterpret_cast<char*>(invec),reinterpret_cast<char*>(inoutvec)
193 template<
typename Ordinal>
202 #endif // TEUCHOS_MPI_REDUCTION_OP_SETTER_HPP
RCP< const MpiReductionOp< Ordinal > > mpiReductionOp(const RCP< const ValueTypeReductionOp< Ordinal, char > > &reductOp)
Create an MpiReductionOp object given an ReductionOp object.
Standard subclass implementation for MpiReductionOpBase in terms of a templated ReductionOp<Ordinal,char> object.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Deprecated.
Utility class for setting an MPI-compatible reduction object and using it to create an MPI_Op object...
void reduce(void *invec, void *inoutvec, int *len, MPI_Datatype *datatype) const
Base class for all objects that can describe themselves.
Smart reference counting pointer class for automatic garbage collection.
Reference-counted pointer class and non-member templated function implementations.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call...
Base class for an MPI-compatible reduction operator.