42 #include <Epetra_ConfigDefs.h> 44 #include <Epetra_MpiComm.h> 46 #include <Epetra_SerialComm.h> 50 #include <lifev/core/LifeV.hpp> 102 template <
typename T1>
110 template <
typename T1,
typename T2>
111 void leaderPrint (
const T1& message1,
const T2& message2 )
const;
119 template <
typename T1,
typename T2,
typename T3>
120 void leaderPrint (
const T1& message1,
const T2& message2,
const T3& message3 )
const;
130 template <
typename T1>
142 template <
typename T1,
typename T2>
143 void leaderPrintMax (
const T1& message1,
const Real& localMax,
const T2& message2 )
const;
185 template <
typename T1>
191 std::cout << message1 << std::flush;
195 template <
typename T1,
typename T2>
201 std::cout << message1 << message2 << std::flush;
205 template <
typename T1,
typename T2,
typename T3>
211 std::cout << message1 << message2 << message3 << std::flush;
215 template <
typename T1>
221 Real num ( localMax );
224 M_comm->MaxAll ( &num, &globalMax, 1 );
227 std::cout << message1 << globalMax << std::endl;
232 std::cout << message1 << localMax << std::endl;
236 template <
typename T1,
typename T2>
242 Real num ( localMax );
245 M_comm->MaxAll ( &num, &globalMax, 1 );
248 std::cout << message1 << globalMax << message2 << std::endl;
253 std::cout << message1 << localMax << message2 << std::endl;
virtual ~Displayer()
Destructor.
Displayer(const commPtr_Type &comm)
void leaderPrintMax(const T1 &message1, const Real &localMax) const
Print the maximum value among the processors.
const commPtr_Type & comm() const
Get the communicator.
std::shared_ptr< comm_Type > commPtr_Type
void leaderPrint(const T1 &message1, const T2 &message2) const
Print two messages.
void setCommunicator(const commPtr_Type &comm)
Set the communicator.
void updateInverseJacobian(const UInt &iQuadPt)
const bool & isLeader() const
Determine if it is the leader.
Displayer(const Displayer &displayer)
Copy constructor.
void leaderPrint(const T1 &message1) const
Print one message.
double Real
Generic real data.
void leaderPrint(const T1 &message1, const T2 &message2, const T3 &message3) const
Print three messages.
void leaderPrintMax(const T1 &message1, const Real &localMax, const T2 &message2) const
Print the maximum value among the processors.
Displayer - This class is used to display messages in parallel simulations.