Abstract interface for the current status of the algorithm. More...
#include <interfaces.hpp>
Public Member Functions | |
virtual | ~IStatus () |
virtual void | clear ()=0 |
Resetting status. More... | |
virtual void | set_converged (bool converged)=0 |
sets a new converged state. More... | |
virtual bool | get_converged (int rank)=0 |
Retreive converged state for specific processor. More... | |
virtual void | set_comm (ICommunicator *comm) |
Set new communicator to use. More... | |
virtual bool | previous_is_iterating () |
Check whether previous processor is still iterating. More... | |
virtual bool | keep_iterating () |
Check whether this processor should keep iterating. More... | |
virtual void | post (int tag)=0 |
virtual void | send (int tag)=0 |
virtual void | recv (int tag)=0 |
Static Public Attributes | |
static const int | NOT_CONVERGED = 0 |
static const int | CONVERGED = 1 |
Protected Attributes | |
ICommunicator * | comm |
Abstract interface for the current status of the algorithm.
The status requires a communicator to enable sending and receiving stati of other processors.
Definition at line 87 of file interfaces.hpp.
|
virtual |
Definition at line 48 of file interfaces_impl.hpp.
|
pure virtual |
|
pure virtual |
Retreive converged state for specific processor.
[in] | rank | ID of processor to check converged state for |
true
if processor with ID rank
has converged; false
otherwiseImplemented in pfasst::mpi::MPIStatus.
Referenced by keep_iterating(), and previous_is_iterating().
|
virtual |
Check whether this processor should keep iterating.
true
if this processor should keep iterating; false
if it should switch to converged
stateDefinition at line 77 of file interfaces_impl.hpp.
References comm, get_converged(), ML_CLOG, and pfasst::ICommunicator::rank().
|
pure virtual |
Implemented in pfasst::mpi::MPIStatus.
|
virtual |
Check whether previous processor is still iterating.
true
if previous processor has converged; false
if it is still iteratingDefinition at line 58 of file interfaces_impl.hpp.
References comm, get_converged(), and pfasst::ICommunicator::rank().
|
pure virtual |
Implemented in pfasst::mpi::MPIStatus.
|
pure virtual |
Implemented in pfasst::mpi::MPIStatus.
|
virtual |
Set new communicator to use.
Reimplemented in pfasst::mpi::MPIStatus.
Definition at line 52 of file interfaces_impl.hpp.
References comm.
|
pure virtual |
sets a new converged state.
Implemented in pfasst::mpi::MPIStatus.
|
protected |
Definition at line 94 of file interfaces.hpp.
Referenced by keep_iterating(), previous_is_iterating(), pfasst::mpi::MPIStatus::set_comm(), set_comm(), and pfasst::mpi::MPIStatus::set_converged().
|
static |
Definition at line 91 of file interfaces.hpp.
Referenced by pfasst::mpi::MPIStatus::recv(), and pfasst::mpi::MPIStatus::send().
|
static |
Definition at line 90 of file interfaces.hpp.
Referenced by pfasst::mpi::MPIStatus::recv(), and pfasst::mpi::MPIStatus::send().