MPI output modifier: Precedes every output by specification of the processor ID. Output can be restricted to a single processor. More...
#include <oomph_utilities.h>
Inheritance diagram for oomph::MPIOutputModifier:Public Member Functions | |
| MPIOutputModifier () | |
| Constructor – initialise flags for output from all processors. | |
| OomphCommunicator *& | communicator_pt () |
| Return pointer to communicator. | |
| virtual bool | operator() (std::ostream &stream) |
| Precede the output by the processor ID but output everything. | |
| void | restrict_output_to_single_processor (const unsigned &output_rank=0) |
| Switch to ensure output is only produced from a single processor (default: Master node, i.e. rank 0) | |
| void | allow_output_from_all_processors () |
| Switch to ensure output is only produced from a single processor (default: Master node, i.e. rank 0) | |
Public Member Functions inherited from oomph::OutputModifier | |
| OutputModifier () | |
| Empty constructor. | |
| virtual | ~OutputModifier () |
| Empty virtual destructor. | |
Private Attributes | |
| unsigned | Output_rank |
| Rank of single processor that produces output (only used if Output_from_single_processor=true. | |
| bool | Output_from_single_processor |
| Boolean to control if output is performed only on a single processor (default: false) | |
| OomphCommunicator * | Communicator_pt |
| Communicator. | |
MPI output modifier: Precedes every output by specification of the processor ID. Output can be restricted to a single processor.
Definition at line 773 of file oomph_utilities.h.
|
inline |
Constructor – initialise flags for output from all processors.
Definition at line 789 of file oomph_utilities.h.
|
inline |
Switch to ensure output is only produced from a single processor (default: Master node, i.e. rank 0)
Definition at line 811 of file oomph_utilities.h.
References Output_from_single_processor.
|
inline |
Return pointer to communicator.
Definition at line 792 of file oomph_utilities.h.
References Communicator_pt.
Referenced by oomph::MPI_Helpers::init().
|
virtual |
Precede the output by the processor ID but output everything.
Reimplemented from oomph::OutputModifier.
Definition at line 960 of file oomph_utilities.cc.
References Communicator_pt, Output_from_single_processor, and Output_rank.
|
inline |
Switch to ensure output is only produced from a single processor (default: Master node, i.e. rank 0)
Definition at line 802 of file oomph_utilities.h.
References Output_from_single_processor, and Output_rank.
|
private |
Communicator.
Definition at line 785 of file oomph_utilities.h.
Referenced by communicator_pt(), and operator()().
|
private |
Boolean to control if output is performed only on a single processor (default: false)
Definition at line 782 of file oomph_utilities.h.
Referenced by allow_output_from_all_processors(), operator()(), and restrict_output_to_single_processor().
|
private |
Rank of single processor that produces output (only used if Output_from_single_processor=true.
Definition at line 778 of file oomph_utilities.h.
Referenced by operator()(), and restrict_output_to_single_processor().