Simpatico  v1.10
List of all members | Public Member Functions
Util::MpiFileIo Class Reference

Detailed Description

Identifies whether this processor may do file I/O.

The return value of isIoProcessor() indicates whether this processor can read and write to file. If the the class is compiled with UTIL_MPI not defined, then isIoProcessor() always returns true. If the class is compiled with UTIL_MPI defined, then this method returns true if either: (1) A communicator has been set and this processor has rank 0 within that communicator, or (2) No communicator has been set.

When compiled with UTIL_MPI defined, an MpiFileIo object has a pointer to an MPI communiciator, and provides methods to set and unset (nullify) the associated communicator.

Definition at line 33 of file MpiFileIo.h.

#include <MpiFileIo.h>

Inheritance diagram for Util::MpiFileIo:
Util::ParamComponent Util::Begin Util::Blank Util::End Util::ParamComposite Util::Parameter Util::AutoCorr< double, double > Util::AutoCorr< std::complex< double >, std::complex< double > > Util::AutoCorrArray< Util::Tensor, double > Util::AutoCorrArray< Util::Vector, double > Util::AutoCorrelation< Tensor, double > Util::AutoCorrelation< Util::Tensor, double > DdMd::Analyzer DdMd::AtomCollector DdMd::AtomDistributor DdMd::AtomStorage DdMd::Buffer DdMd::ConfigIo DdMd::Domain DdMd::GroupCollector< N > DdMd::GroupDistributor< N > DdMd::GroupStorage< N > DdMd::Integrator DdMd::Modifier DdMd::Potential DdMd::Simulation DdMd::GroupStorage< 2 > DdMd::GroupStorage< 3 > DdMd::GroupStorage< 4 > Util::Manager< Analyzer > Util::Manager< Command > Util::Manager< McMove > Util::Manager< Modifier > Util::Manager< Simp::Species > McMd::Analyzer McMd::AnglePotential McMd::BondPotential McMd::ColVar McMd::Command McMd::CvBias McMd::DihedralPotential McMd::ExternalPotential McMd::LinkMaster McMd::McMove McMd::McPairPotential McMd::MdCoulombPotential McMd::MdIntegrator McMd::MdPairPotential McMd::PairList McMd::Perturbation McMd::ReplicaMove McMd::Simulation McMd::SpecialPotential McMd::System Util::MeanSqDispArray< Util::Vector > Simp::BoundaryEnsemble Simp::BoxExternal Simp::CompensatedPair< BarePair, LinkPotential > Simp::CompositeBond< BareBond, BarePair > Simp::CosineAngle Simp::CosineDihedral Simp::CosineSqAngle Simp::DpdPair Simp::EnergyEnsemble Simp::EwaldInteraction Simp::FeneBond Simp::GeneralPeriodicExternal Simp::HarmonicAngle Simp::HarmonicBond Simp::HarmonicL0Bond Simp::LamellarOrderingExternal Simp::LJPair Simp::LocalLamellarOrderingExternal Simp::MultiHarmonicDihedral Simp::NucleationExternal Simp::OrthoBoxExternal Simp::PeriodicExternal Simp::SimplePeriodicExternal Simp::SlitExternal Simp::Species Simp::SpeciesEnsemble Simp::SphericalTabulatedExternal Tools::Analyzer Tools::ChainMaker Tools::ConfigReader Tools::Configuration Tools::ConfigWriter Tools::TrajectoryReader Util::AutoCorr< Data, Product > Util::AutoCorrArray< Data, Product > Util::AutoCorrelation< Data, Product > Util::Average Util::Distribution Util::FileMaster Util::IntDistribution Util::Manager< Data > Util::MeanSqDispArray< Data > Util::Random Util::SymmTensorAverage Util::TensorAverage Util::CArray2DParam< Type > Util::CArrayParam< Type > Util::DArrayParam< Type > Util::DMatrixParam< Type > Util::DSymmMatrixParam< Type > Util::FArrayParam< Type, N > Util::ScalarParam< Type >

Public Member Functions

 MpiFileIo ()
 Constructor. More...
 
 MpiFileIo (const MpiFileIo &other)
 Copy constructor. More...
 
bool isIoProcessor () const
 Can this processor do file I/O ? More...
 
void setIoCommunicator (MPI::Intracomm &communicator)
 Set the communicator. More...
 
void clearCommunicator ()
 Clear (nullify) the communicator. More...
 
bool hasIoCommunicator () const
 Does this object have an associated MPI communicator? More...
 
MPI::Intracomm & ioCommunicator () const
 Get the MPI communicator by reference. More...
 

Constructor & Destructor Documentation

Util::MpiFileIo::MpiFileIo ( )

Constructor.

Definition at line 18 of file MpiFileIo.cpp.

Util::MpiFileIo::MpiFileIo ( const MpiFileIo other)

Copy constructor.

Definition at line 28 of file MpiFileIo.cpp.

Member Function Documentation

bool Util::MpiFileIo::isIoProcessor ( ) const
inline
void Util::MpiFileIo::setIoCommunicator ( MPI::Intracomm &  communicator)
void Util::MpiFileIo::clearCommunicator ( )

Clear (nullify) the communicator.

Definition at line 46 of file MpiFileIo.cpp.

bool Util::MpiFileIo::hasIoCommunicator ( ) const
inline
MPI::Intracomm & Util::MpiFileIo::ioCommunicator ( ) const
inline

The documentation for this class was generated from the following files: