PSCF v1.4.0
Util::MpiFileIo Class Reference

Identifies whether this processor may do file I/O. More...

#include <MpiFileIo.h>

Inheritance diagram for Util::MpiFileIo:
Util::ParamComponent Util::Begin Util::Blank Util::End Util::ParamComposite Util::Parameter Pscf::Cp::Domain< D, FFT< D >, WaveList< D >, FieldIo< D > > Pscf::Cp::System< D, Types< D > > Pscf::MixtureTmpl< PolymerT, SolventT, double > Pscf::MixtureTmpl< PT, ST, std::complex< double > > Pscf::MixtureTmpl< Polymer< D >, Solvent< D >, std::complex< double > > Pscf::MixtureTmpl< Polymer, Solvent > Pscf::MixtureTmpl< T::Polymer, T::Solvent, double > Pscf::MixtureTmpl< Types< D >::Polymer, Types< D >::Solvent, double > Pscf::Rp::Analyzer< D, Simulator< D >, System< D > > Pscf::Rp::BdStep< D, Types< D > > Pscf::Rp::Domain< D, FFT< D >, WaveList< D >, FieldIo< D > > Pscf::Rp::Iterator< D, System< D > > Pscf::Rp::McMove< D, Types< D > > Pscf::Rp::Perturbation< D, Types< D > > Pscf::Rp::Ramp< D, Types< D > > Pscf::Rp::Simulator< D, Types< D > > Pscf::Rp::Simulator< D > Pscf::Rp::System< D > Pscf::Rp::System< D, Types< D > > Pscf::Species< WT > Pscf::Species< double > Pscf::Species< std::complex< double > > Pscf::Species< RealT > Pscf::SweepTmpl< BasisFieldStateT > Pscf::SweepTmpl< typename T::BasisFieldState > Pscf::SweepTmpl< DArray< System::WField > > Pscf::SweepTmpl< T::BasisFieldState > Pscf::SweepTmpl< Types< D >::BasisFieldState > Util::Manager< AnalyzerT > Util::Manager< McMoveT > Util::Manager< T::Analyzer > Util::Manager< T::McMove > Util::Manager< Types< D >::Analyzer > Util::Manager< Types< D >::McMove > Pscf::Cp::Domain< D, FFT, WLT, FIT > Pscf::Cp::Kernel Pscf::Cp::System< D, T > Pscf::Cpc::Simulator< D > Pscf::Cpc::Step< D > Pscf::EnvironmentBase Pscf::FhInteraction Pscf::FhMixture Pscf::FhMolecule Pscf::FieldGeneratorBase Pscf::Interaction Pscf::MixtureTmpl< PT, ST, WT > Pscf::R1d::Domain Pscf::R1d::Iterator Pscf::R1d::System Pscf::Rp::Analyzer< D, SimT, SysT > Pscf::Rp::BdStep< D, T > Pscf::Rp::Domain< D, FFT, WLT, FIT > Pscf::Rp::Iterator< D, ST > Pscf::Rp::McMove< D, T > Pscf::Rp::Perturbation< D, T > Pscf::Rp::Ramp< D, T > Pscf::Rp::Simulator< D, T > Pscf::Rp::System< D, T > Pscf::Rpc::Compressor< D > Pscf::Rpg::Compressor< D > Pscf::Species< WT > Pscf::SweepTmpl< State > 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::ArrayParam< Type > Util::MatrixParam< Type > Util::ScalarParam< Type >

Public Member Functions

 MpiFileIo ()
 Constructor.
 MpiFileIo (const MpiFileIo &other)
 Copy constructor.
bool isIoProcessor () const
 Can this processor do file I/O ?

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 35 of file MpiFileIo.h.

Constructor & Destructor Documentation

◆ MpiFileIo() [1/2]

Util::MpiFileIo::MpiFileIo ( )

Constructor.

Definition at line 18 of file MpiFileIo.cpp.

Referenced by MpiFileIo(), Util::ParamComponent::ParamComponent(), and Util::ParamComponent::ParamComponent().

◆ MpiFileIo() [2/2]

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

Copy constructor.

Definition at line 28 of file MpiFileIo.cpp.

References MpiFileIo().

Member Function Documentation

◆ isIoProcessor()


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