|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
#include <H5PartWrapper.h>
Public Member Functions | |
| virtual | ~H5PartWrapper () |
| void | close () |
| double | getLastPosition () |
| virtual void | readHeader ()=0 |
| virtual void | readStep (PartBunch_t *, h5_ssize_t firstParticle, h5_ssize_t lastParticle)=0 |
| virtual void | writeHeader ()=0 |
| virtual void | writeStep (PartBunch_t *, const std::map< std::string, double > &)=0 |
| virtual bool | predecessorIsSameFlavour () const =0 |
| void | storeCavityInformation () |
| size_t | getNumParticles () const |
Protected Member Functions | |
| H5PartWrapper (const std::string &fileName, h5_int32_t flags=H5_O_WRONLY) | |
| H5PartWrapper (const std::string &fileName, int restartStep, std::string sourceFile, h5_int32_t flags=H5_O_RDWR) | |
| void | open (h5_int32_t flags) |
| void | copyFile (const std::string &sourceFile, int lastStep=-1, h5_int32_t flags=H5_O_WRONLY) |
| void | copyFileSystem (const std::string &sourceFile) |
| void | copyHeader (h5_file_t source) |
| void | copyStep (h5_file_t source, int step) |
| void | copyStepHeader (h5_file_t source) |
| void | copyStepData (h5_file_t source) |
| void | sendFailureMessage (bool failed, const std::string &where, const std::string &what) |
| void | receiveFailureMessage (int sourceNode, const std::string &where, const std::string &what) |
Static Protected Member Functions | |
| static void | reportOnError (h5_int64_t rc, const char *file, int line) |
Protected Attributes | |
| h5_file_t | file_m |
| std::string | fileName_m |
| std::string | predecessorOPALFlavour_m |
| h5_int64_t | numSteps_m |
| bool | startedFromExistingFile_m |
Static Protected Attributes | |
| static std::string | copyFilePrefix_m = ".copy" |
Definition at line 38 of file H5PartWrapper.h.
|
virtual |
Definition at line 55 of file H5PartWrapper.cpp.
References close().
|
protected |
Definition at line 30 of file H5PartWrapper.cpp.
References file_m, fileName_m, numSteps_m, open(), predecessorOPALFlavour_m, and startedFromExistingFile_m.
Referenced by H5PartWrapperForPT::H5PartWrapperForPT(), and H5PartWrapperForPT::H5PartWrapperForPT().
|
protected |
Definition at line 39 of file H5PartWrapper.cpp.
References copyFile(), file_m, fileName_m, numSteps_m, open(), predecessorOPALFlavour_m, and startedFromExistingFile_m.
| void H5PartWrapper::close | ( | ) |
Definition at line 59 of file H5PartWrapper.cpp.
References file_m, and REPORTONERROR.
Referenced by copyFile(), H5Writer::H5Writer(), storeCavityInformation(), H5PartWrapperForPT::writeStep(), and ~H5PartWrapper().
|
protected |
Definition at line 129 of file H5PartWrapper.cpp.
References close(), copyFilePrefix_m, copyFileSystem(), copyHeader(), copyStep(), fileName_m, numSteps_m, open(), predecessorOPALFlavour_m, READSTEPATTRIB, and REPORTONERROR.
Referenced by H5PartWrapper().
|
protected |
Definition at line 252 of file H5PartWrapper.cpp.
References fileName_m, receiveFailureMessage(), and sendFailureMessage().
Referenced by copyFile().
|
protected |
Definition at line 288 of file H5PartWrapper.cpp.
References file_m, READFILEATTRIB, REPORTONERROR, WRITEFILEATTRIB, and WRITESTRINGFILEATTRIB.
Referenced by copyFile().
|
protected |
Definition at line 352 of file H5PartWrapper.cpp.
References copyStepData(), copyStepHeader(), file_m, numSteps_m, and REPORTONERROR.
Referenced by copyFile().
|
protected |
Definition at line 429 of file H5PartWrapper.cpp.
References Util::c_data(), file_m, READDATA, REPORTONERROR, and WRITEDATA.
Referenced by copyStep().
|
protected |
Definition at line 360 of file H5PartWrapper.cpp.
References file_m, predecessorOPALFlavour_m, READSTEPATTRIB, REPORTONERROR, WRITESTEPATTRIB, and WRITESTRINGSTEPATTRIB.
Referenced by copyStep().
|
inline |
Definition at line 90 of file H5PartWrapper.h.
References file_m, open(), readStep(), READSTEPATTRIB, and REPORTONERROR.
| size_t H5PartWrapper::getNumParticles | ( | ) | const |
Definition at line 508 of file H5PartWrapper.cpp.
References file_m, numSteps_m, and REPORTONERROR.
Referenced by H5PartWrapperForPT::readStepData().
|
protected |
Definition at line 69 of file H5PartWrapper.cpp.
References file_m, and fileName_m.
Referenced by copyFile(), getLastPosition(), H5PartWrapper(), H5PartWrapper(), storeCavityInformation(), and H5PartWrapperForPT::writeStep().
|
pure virtual |
Implemented in H5PartWrapperForPT.
|
pure virtual |
Implemented in H5PartWrapperForPT.
|
pure virtual |
Implemented in H5PartWrapperForPT.
Referenced by getLastPosition().
|
protected |
Definition at line 495 of file H5PartWrapper.cpp.
Referenced by copyFileSystem().
|
inlinestaticprotected |
Definition at line 85 of file H5PartWrapper.h.
|
protected |
Definition at line 483 of file H5PartWrapper.cpp.
Referenced by copyFileSystem().
| void H5PartWrapper::storeCavityInformation | ( | ) |
Write number of Cavities with autophase information
Definition at line 82 of file H5PartWrapper.cpp.
References close(), end(), file_m, OpalData::getFirstMaxPhases(), OpalData::getInstance(), OpalData::getLastMaxPhases(), OpalData::getNumberOfMaxPhases(), open(), WRITEFILEATTRIB, and WRITESTRINGFILEATTRIB.
|
pure virtual |
Implemented in H5PartWrapperForPT.
Referenced by H5Writer::H5Writer().
|
pure virtual |
Implemented in H5PartWrapperForPT.
|
staticprotected |
Definition at line 82 of file H5PartWrapper.h.
Referenced by copyFile().
|
protected |
Definition at line 76 of file H5PartWrapper.h.
Referenced by close(), copyHeader(), copyStep(), copyStepData(), copyStepHeader(), getLastPosition(), getNumParticles(), H5PartWrapper(), H5PartWrapper(), H5PartWrapperForPT::H5PartWrapperForPT(), open(), H5PartWrapperForPT::readHeader(), H5PartWrapperForPT::readStep(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPT::readStepHeader(), storeCavityInformation(), H5PartWrapperForPT::writeHeader(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPT::writeStepHeader().
|
protected |
Definition at line 77 of file H5PartWrapper.h.
Referenced by copyFile(), copyFileSystem(), H5PartWrapper(), H5PartWrapper(), and open().
|
protected |
Definition at line 79 of file H5PartWrapper.h.
Referenced by copyFile(), copyStep(), getNumParticles(), H5PartWrapper(), H5PartWrapper(), and H5PartWrapperForPT::writeStepHeader().
|
protected |
Definition at line 78 of file H5PartWrapper.h.
Referenced by copyFile(), copyStepHeader(), H5PartWrapper(), H5PartWrapper(), and H5PartWrapperForPT::predecessorIsSameFlavour().
|
protected |
Definition at line 80 of file H5PartWrapper.h.
Referenced by H5PartWrapper(), and H5PartWrapper().