Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cps::QioControl Class Reference

#include <qioarg.h>

Inherited by cps::IoStyle [protected], cps::LatRngIO, cps::ReadLatticeParallel, and cps::WriteLatticeParallel.

List of all members.

Public Member Functions

 QioControl ()
virtual ~QioControl ()
int synchronize (const int errorStatus=0) const
void broadcastInt (int *data, int fromID=0) const
void broadcastFloat (Float *data, int fromID=0) const
int globalSumInt (const int data) const
unsigned int globalSumUint (const unsigned int data) const
Float globalSumFloat (const Float data) const
int round (const Float fdata) const
int globalMinInt (const int data) const
int getIOTimeSlot () const
int finishIOTimeSlot () const
void setConcurIONumber (int set_concur)
bool isRoot ()
int uniqueID () const
int NumNodes () const
int syncError (int this_error) const
void setLogDir (const char *LogDir)
void startLogging (const char *action=0)
void finishLogging (const char *ending_word=0)
void log (const char *short_note=0)
bool good () const
void SimQCDSP (int sim)

Protected Attributes

FPConv fpconv
bool io_good


Constructor & Destructor Documentation

cps::QioControl::QioControl  ) 
 

Definition at line 53 of file qioarg.C.

References cps::GJP, cps::GlobalJobParameter::SnodeCoor(), cps::GlobalJobParameter::Snodes(), cps::GlobalJobParameter::TnodeCoor(), cps::GlobalJobParameter::Tnodes(), cps::GlobalJobParameter::XnodeCoor(), cps::GlobalJobParameter::Xnodes(), cps::GlobalJobParameter::YnodeCoor(), cps::GlobalJobParameter::Ynodes(), cps::GlobalJobParameter::ZnodeCoor(), and cps::GlobalJobParameter::Znodes().

cps::QioControl::~QioControl  )  [virtual]
 

Definition at line 69 of file qioarg.C.


Member Function Documentation

void cps::QioControl::broadcastFloat Float data,
int  fromID = 0
const
 

Definition at line 46 of file qioarg_glb.C.

References globalSumFloat(), and NumNodes().

void cps::QioControl::broadcastInt int *  data,
int  fromID = 0
const
 

Definition at line 36 of file qioarg_glb.C.

References globalSumInt(), and NumNodes().

Referenced by finishIOTimeSlot(), getIOTimeSlot(), cps::ReadLatticeParallel::getSequenceNumber(), cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

int cps::QioControl::finishIOTimeSlot  )  const
 

Definition at line 211 of file qioarg.C.

References broadcastInt(), NumNodes(), and synchronize().

Referenced by cps::ParallelIO::load(), and cps::ParallelIO::store().

void cps::QioControl::finishLogging const char *  ending_word = 0  ) 
 

Definition at line 427 of file qioarg.C.

References cps::ERR, cps::Error::Hardware(), and syncError().

Referenced by cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

int cps::QioControl::getIOTimeSlot  )  const
 

Definition at line 184 of file qioarg.C.

References broadcastInt(), NumNodes(), and synchronize().

Referenced by cps::ParallelIO::load(), and cps::ParallelIO::store().

int cps::QioControl::globalMinInt const int  data  )  const
 

Definition at line 113 of file qioarg_glb.C.

References cps::Float, cps::glb_min(), and round().

Float cps::QioControl::globalSumFloat const Float  data  )  const
 

Definition at line 101 of file qioarg_glb.C.

References cps::Float, and cps::glb_sum_five().

Referenced by broadcastFloat(), globalSumInt(), globalSumUint(), cps::LatRngRead::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

int cps::QioControl::globalSumInt const int  data  )  const
 

Definition at line 63 of file qioarg_glb.C.

References globalSumFloat(), and round().

Referenced by broadcastInt(), and synchronize().

unsigned int cps::QioControl::globalSumUint const unsigned int  data  )  const
 

Definition at line 82 of file qioarg_glb.C.

References globalSumFloat(), and round().

Referenced by cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

bool cps::QioControl::good  )  const [inline]
 

Definition at line 169 of file qioarg.h.

Referenced by cps::LatRanGen::Read(), and cps::LatRanGen::Write().

bool cps::QioControl::isRoot  )  [inline]
 

Definition at line 145 of file qioarg.h.

Referenced by cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

void cps::QioControl::log const char *  short_note = 0  ) 
 

Definition at line 404 of file qioarg.C.

References cps::ERR, cps::Error::Hardware(), and syncError().

Referenced by cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

int cps::QioControl::NumNodes  )  const [inline]
 

Definition at line 147 of file qioarg.h.

Referenced by broadcastFloat(), broadcastInt(), finishIOTimeSlot(), getIOTimeSlot(), syncError(), and synchronize().

int cps::QioControl::round const Float  fdata  )  const
 

Definition at line 56 of file qioarg_glb.C.

Referenced by globalMinInt(), globalSumInt(), and globalSumUint().

void cps::QioControl::setConcurIONumber int  set_concur  )  [inline]
 

Definition at line 143 of file qioarg.h.

Referenced by cps::ParallelIO::load(), and cps::ParallelIO::store().

void cps::QioControl::setLogDir const char *  LogDir  ) 
 

Definition at line 306 of file qioarg.C.

Referenced by cps::LatRanGen::Read(), and cps::LatRanGen::Write().

void cps::QioControl::SimQCDSP int  sim  )  [inline]
 

Definition at line 172 of file qioarg.h.

References cps::FPConv::SimQCDSP().

void cps::QioControl::startLogging const char *  action = 0  ) 
 

Definition at line 313 of file qioarg.C.

References cps::ERR, cps::Error::FileA(), cps::Verbose::Flow(), syncError(), uniqueID(), and cps::VRB.

Referenced by cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

int cps::QioControl::syncError int  this_error  )  const
 

Definition at line 289 of file qioarg.C.

References cps::Verbose::Flow(), cps::TempBufAlloc::IntPtr(), NumNodes(), and cps::VRB.

Referenced by finishLogging(), log(), and startLogging().

int cps::QioControl::synchronize const int  errorStatus = 0  )  const
 

Definition at line 23 of file qioarg_glb.C.

References cps::Verbose::Flow(), globalSumInt(), NumNodes(), and cps::VRB.

Referenced by finishIOTimeSlot(), getIOTimeSlot(), cps::SerialIO::load(), cps::ParallelIO::load(), cps::LatRngRead::read(), cps::ReadLatticeParallel::read(), cps::QPropW::RestoreOrgProp(), cps::QPropW::RestoreQPropLs(), cps::QPropW::RestoreQPropLs_ftom(), cps::QPropW::SaveQPropLs(), cps::SerialIO::store(), cps::ParallelIO::store(), cps::QPropW::SwapQPropLs(), cps::LatRngWrite::write(), and cps::WriteLatticeParallel::write().

int cps::QioControl::uniqueID  )  const [inline]
 

Definition at line 146 of file qioarg.h.

Referenced by cps::SerialIO::backForthTest(), cps::SerialIO::rotateTest(), and startLogging().


Member Data Documentation

FPConv cps::QioControl::fpconv [protected]
 

Definition at line 166 of file qioarg.h.

bool cps::QioControl::io_good [protected]
 

Definition at line 167 of file qioarg.h.


The documentation for this class was generated from the following files:
Generated on Sat Jan 5 23:34:12 2013 for Columbia Physics System by  doxygen 1.3.9.1