# PhasicFlow: src/phasicFlow/processors/MPITimer.hpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

MPITimer.hpp
Go to the documentation of this file.
#ifndef __MPITimer_hpp__
#define __MPITimer_hpp__
#include "Timer.hpp"
namespace pFlow
{
class MPITimer
:
public Timer
{
private:
// hiding methods
using Timer::accTimersTotal;
using Timer::averageTime;
public:
TypeInfo("MPITimer");
explicit MPITimer(const word& name)
:
Timer(name)
{}
real totalTimeMax()const;
std::vector<real> totalTimeAllToAll()const;
std::vector<real> totalTimeAllToMaster()const;
real averageTimeMax()const;
std::vector<real> averageTimeAllToAll()const;
std::vector<real> averageTimeAllAtoMaster()const;
// call this from all processors in pFlowProcessors
bool write(iOstream& os)const;
};
MPITimer& ComputationTimer();
}
#endif
pFlow::MPITimer::totalTimeMax
real totalTimeMax() const
Definition: MPITimer.cpp:8
pFlow::Timer::averageTime
real averageTime() const
Definition: Timer.hpp:157
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::MPITimer::MPITimer
MPITimer(const word &name)
Definition: MPITimer.hpp:26
pFlow::MPITimer::TypeInfo
TypeInfo("MPITimer")
pFlow::MPITimer::totalTimeAllToAll
std::vector< real > totalTimeAllToAll() const
Definition: MPITimer.cpp:13
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::MPITimer::averageTimeMax
real averageTimeMax() const
Definition: MPITimer.cpp:35
pFlow::MPITimer::write
bool write(iOstream &os) const
Definition: MPITimer.cpp:62
pFlow
Definition: demGeometry.hpp:27
pFlow::Timer
Definition: Timer.hpp:33
pFlow::MPITimer::totalTimeAllToMaster
std::vector< real > totalTimeAllToMaster() const
Definition: MPITimer.cpp:24
pFlow::Timer::name
const word & name() const
Definition: Timer.hpp:80
pFlow::MPITimer::averageTimeAllToAll
std::vector< real > averageTimeAllToAll() const
Definition: MPITimer.cpp:40
pFlow::Timer::accTimersTotal
virtual real accTimersTotal() const
Definition: Timer.hpp:163
Timer.hpp
pFlow::MPITimer::averageTimeAllAtoMaster
std::vector< real > averageTimeAllAtoMaster() const
Definition: MPITimer.cpp:51
pFlow::iOstream
Interface class for any output stream.
Definition: iOstream.hpp:59
pFlow::ComputationTimer
MPITimer & ComputationTimer()
Definition: MPITimer.cpp:85
pFlow::MPITimer
Definition: MPITimer.hpp:12