![]() |
|
#include <oomph_utilities.h>
Static Public Member Functions | |
| static void | init (int argc, char **argv, const bool &make_duplicate_of_mpi_comm_world=true) |
| static void | finalize () |
| finalize mpi More... | |
| static OomphCommunicator * | communicator_pt () |
| access to the global oomph-lib communicator More... | |
| static bool | mpi_has_been_initialised () |
| return true if MPI has been initialised More... | |
Private Member Functions | |
| MPI_Helpers () | |
| MPI_Helpers (const MPI_Helpers &) | |
Static Private Attributes | |
| static bool | MPI_has_been_initialised = false |
| Bool set to true if MPI has been initialised. More... | |
| static OomphCommunicator * | Communicator_pt = 0 |
| the global communicator More... | |
MPI_Helpers class contains static helper methods to support MPI within oomph-lib. The methods init(...) and finalize() initialize and finalize MPI in oomph-lib and manage the oomph-libs global communicator communicator_pt(). NOTE: This class encapsulates static helper methods and instances of it CANNOT be instantiated.
|
private |
private default constructor definition (to prevent instances of the class being instantiated)
|
private |
private copy constructor definition (to prevent instances of the class being instantiated)
|
static |
access to the global oomph-lib communicator
access to global communicator. This is the oomph-lib equivalent of MPI_COMM_WORLD
References Communicator_pt, MPI_has_been_initialised, OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
Referenced by oomph::Z2ErrorEstimator::doc_flux(), oomph::MemoryUsage::doc_total_memory_usage(), oomph::HelmholtzMGPreconditioner< DIM >::full_setup(), oomph::Z2ErrorEstimator::get_element_errors(), oomph::Node::hanging_pt(), oomph::HypreInterface::hypre_solve(), oomph::HypreInterface::HypreInterface(), main(), oomph::Problem::Problem(), oomph::MemoryUsage::run_continous_top(), oomph::MGPreconditioner< DIM >::setup(), oomph::HelmholtzGMRESMG< MATRIX >::solve(), oomph::HelmholtzFGMRESMG< MATRIX >::solve(), and oomph::MemoryUsage::stop_continous_top().
|
static |
finalize mpi
finalize mpi (oomph-lib equivalent of MPI_Finalize()) Deletes the global oomph-lib communicator and finalizes MPI.
References Communicator_pt.
Referenced by main(), and oomph::CommandLineArgs::parse_and_assign().
|
static |
initialise mpi (oomph-libs equivalent of MPI_Init(...)) Initialises MPI and creates the global oomph-lib communicator. If optional boolean flag is set to false, we use MPI_COMM_WORLD itself as oomph-lib's communicator. Defaults to true.
Initialize mpi. If optional boolean flag is set to false, we use MPI_COMM_WORLD itself as oomph-lib's communicator. Defaults to true.
References Communicator_pt, MPI_has_been_initialised, oomph::oomph_info, and oomph::OomphInfo::output_modifier_pt().
Referenced by main().
|
inlinestatic |
return true if MPI has been initialised
Referenced by BoussinesqPreconditioner::BoussinesqPreconditioner(), oomph::HypreHelpers::create_HYPRE_Matrix(), oomph::MemoryUsage::doc_total_memory_usage(), oomph::SuperLUSolver::factorise(), oomph::Z2ErrorEstimator::get_element_errors(), oomph::HypreInterface::hypre_solve(), oomph::HypreInterface::HypreInterface(), oomph::Problem::newton_solve(), oomph::Problem::Problem(), oomph::ProjectionProblem< PROJECTABLE_ELEMENT >::project(), oomph::MemoryUsage::run_continous_top(), oomph::MatrixVectorProduct::setup(), oomph::MemoryUsage::stop_continous_top(), RefineableConvectionProblem< NST_ELEMENT, AD_ELEMENT >::switch_to_iterative_linear_solver(), and oomph::TimingHelpers::timer().
|
staticprivate |
the global communicator
Referenced by communicator_pt(), finalize(), and init().
|
staticprivate |
Bool set to true if MPI has been initialised.
Referenced by communicator_pt(), and init().