fpmas 1.6
Public Member Functions | List of all members
fpmas::io::Reduce< T, BinaryOp, Mpi >::All Class Reference

#include <output.h>

Public Member Functions

 All (api::communication::MpiCommunicator &comm, const Watcher< T > &watcher, const Params &)
 
operator() ()
 

Detailed Description

template<typename T, typename BinaryOp = std::plus<T>, template< typename > class Mpi = communication::TypedMpi>
class fpmas::io::Reduce< T, BinaryOp, Mpi >::All

All mode for the Reduce operation.

Result is gathered on all processes.

Constructor & Destructor Documentation

◆ All()

template<typename T , typename BinaryOp = std::plus<T>, template< typename > class Mpi = communication::TypedMpi>
fpmas::io::Reduce< T, BinaryOp, Mpi >::All::All ( api::communication::MpiCommunicator comm,
const Watcher< T > &  watcher,
const Params  
)
inline

Reduce::All constructor.

Parameters
commMPI communicator
watcherlocal watcher

Member Function Documentation

◆ operator()()

template<typename T , typename BinaryOp = std::plus<T>, template< typename > class Mpi = communication::TypedMpi>
T fpmas::io::Reduce< T, BinaryOp, Mpi >::All::operator() ( )
inline

Applies the fpmas::communication::reduce() operation on data returned by watcher().

Reduced data is returned on all processes.

Returns
fetched data

The documentation for this class was generated from the following file: