#include <mpi_communicator.hpp>
Public Member Functions | |
virtual void | set_comm (ICommunicator *comm) |
Set new communicator to use. More... | |
virtual void | clear () override |
Resetting status. More... | |
virtual void | set_converged (bool converged) override |
sets a new converged state. More... | |
virtual bool | get_converged (int rank) override |
Retreive converged state for specific processor. More... | |
virtual void | post (int tag) override |
virtual void | send (int tag) override |
virtual void | recv (int tag) override |
![]() | |
virtual | ~IStatus () |
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... | |
Protected Attributes | |
vector< bool > | converged |
MPICommunicator * | mpi |
![]() | |
ICommunicator * | comm |
Additional Inherited Members | |
![]() | |
static const int | NOT_CONVERGED = 0 |
static const int | CONVERGED = 1 |
Definition at line 104 of file mpi_communicator.hpp.
|
overridevirtual |
Resetting status.
Implements pfasst::IStatus.
Definition at line 81 of file mpi_communicator_impl.hpp.
References converged.
|
overridevirtual |
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
otherwiseImplements pfasst::IStatus.
Definition at line 94 of file mpi_communicator_impl.hpp.
References converged.
Referenced by recv().
|
overridevirtual |
Implements pfasst::IStatus.
Definition at line 99 of file mpi_communicator_impl.hpp.
References UNUSED.
|
overridevirtual |
Implements pfasst::IStatus.
Definition at line 122 of file mpi_communicator_impl.hpp.
References pfasst::mpi::check_mpi_error(), pfasst::mpi::MPICommunicator::comm, pfasst::IStatus::CONVERGED, converged, get_converged(), ML_CLOG, mpi, MPI_Status_factory(), pfasst::IStatus::NOT_CONVERGED, pfasst::mpi::MPICommunicator::rank(), and pfasst::mpi::MPICommunicator::size().
|
overridevirtual |
Implements pfasst::IStatus.
Definition at line 105 of file mpi_communicator_impl.hpp.
References pfasst::mpi::check_mpi_error(), pfasst::mpi::MPICommunicator::comm, pfasst::IStatus::CONVERGED, converged, ML_CLOG, mpi, pfasst::IStatus::NOT_CONVERGED, pfasst::mpi::MPICommunicator::rank(), and pfasst::mpi::MPICommunicator::size().
|
virtual |
Set new communicator to use.
Reimplemented from pfasst::IStatus.
Definition at line 73 of file mpi_communicator_impl.hpp.
References pfasst::IStatus::comm, converged, mpi, and pfasst::ICommunicator::size().
|
overridevirtual |
sets a new converged state.
Implements pfasst::IStatus.
Definition at line 86 of file mpi_communicator_impl.hpp.
References pfasst::IStatus::comm, ML_CLOG, and pfasst::ICommunicator::rank().
|
protected |
Definition at line 108 of file mpi_communicator.hpp.
Referenced by clear(), get_converged(), recv(), send(), and set_comm().
|
protected |
Definition at line 109 of file mpi_communicator.hpp.
Referenced by recv(), send(), and set_comm().