|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
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 > &, size_t particleContainerIndex=0)=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 54 of file H5PartWrapper.cpp.
References close().

|
protected |
Definition at line 29 of file H5PartWrapper.cpp.
References open().

|
protected |
Definition at line 38 of file H5PartWrapper.cpp.
References copyFile(), fileName_m, and open().

| void H5PartWrapper::close | ( | ) |
Definition at line 56 of file H5PartWrapper.cpp.
References file_m, and REPORTONERROR.
Referenced by H5Writer::close(), copyFile(), H5Writer::H5Writer(), storeCavityInformation(), H5PartWrapperForPT::writeStep(), and ~H5PartWrapper().
|
protected |
Definition at line 121 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 244 of file H5PartWrapper.cpp.
References fileName_m, receiveFailureMessage(), and sendFailureMessage().
Referenced by copyFile().

|
protected |
Definition at line 279 of file H5PartWrapper.cpp.
References file_m, READFILEATTRIB, REPORTONERROR, WRITEFILEATTRIB, and WRITESTRINGFILEATTRIB.
Referenced by copyFile().
|
protected |
Definition at line 345 of file H5PartWrapper.cpp.
References copyStepData(), copyStepHeader(), file_m, numSteps_m, and REPORTONERROR.
Referenced by copyFile().

|
protected |
Definition at line 435 of file H5PartWrapper.cpp.
References Util::c_data(), file_m, READDATA, REPORTONERROR, and WRITEDATA.
Referenced by copyStep().

|
protected |
Definition at line 353 of file H5PartWrapper.cpp.
References file_m, predecessorOPALFlavour_m, READSTEPATTRIB, REPORTONERROR, WRITESTEPATTRIB, and WRITESTRINGSTEPATTRIB.
Referenced by copyStep().
|
inline |
Definition at line 92 of file H5PartWrapper.h.
References file_m, open(), readStep(), READSTEPATTRIB, and REPORTONERROR.
Referenced by H5Writer::getLastPosition().

| size_t H5PartWrapper::getNumParticles | ( | ) | const |
Definition at line 511 of file H5PartWrapper.cpp.
References file_m, numSteps_m, and REPORTONERROR.
Referenced by H5PartWrapperForPT::readStepData().
|
protected |
Definition at line 66 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 499 of file H5PartWrapper.cpp.
Referenced by copyFileSystem().
|
inlinestaticprotected |
Definition at line 87 of file H5PartWrapper.h.
|
protected |
Definition at line 488 of file H5PartWrapper.cpp.
Referenced by copyFileSystem().
| void H5PartWrapper::storeCavityInformation | ( | ) |
Write number of Cavities with autophase information
Definition at line 79 of file H5PartWrapper.cpp.
References close(), file_m, OpalData::getFirstMaxPhases(), OpalData::getInstance(), OpalData::getLastMaxPhases(), OpalData::getNumberOfMaxPhases(), open(), WRITEFILEATTRIB, and WRITESTRINGFILEATTRIB.
Referenced by H5Writer::storeCavityInformation().

|
pure virtual |
Implemented in H5PartWrapperForPT.
Referenced by H5Writer::H5Writer().
|
pure virtual |
Implemented in H5PartWrapperForPT.
Referenced by H5Writer::writePhaseSpace(), and H5Writer::writePhaseSpace().
|
staticprotected |
Definition at line 84 of file H5PartWrapper.h.
Referenced by copyFile().
|
protected |
Definition at line 78 of file H5PartWrapper.h.
Referenced by close(), copyHeader(), copyStep(), copyStepData(), copyStepHeader(), getLastPosition(), getNumParticles(), H5PartWrapperForPT::H5PartWrapperForPT(), open(), H5PartWrapperForPT::readHeader(), H5PartWrapperForPT::readStep(), H5PartWrapperForPT::readStepData(), H5PartWrapperForPT::readStepHeader(), storeCavityInformation(), H5PartWrapperForPT::writeHeader(), H5PartWrapperForPT::writeStepData(), and H5PartWrapperForPT::writeStepHeader().
|
protected |
Definition at line 79 of file H5PartWrapper.h.
Referenced by copyFile(), copyFileSystem(), H5PartWrapper(), and open().
|
protected |
Definition at line 81 of file H5PartWrapper.h.
Referenced by copyFile(), copyStep(), getNumParticles(), and H5PartWrapperForPT::writeStepHeader().
|
protected |
Definition at line 80 of file H5PartWrapper.h.
Referenced by copyFile(), copyStepHeader(), and H5PartWrapperForPT::predecessorIsSameFlavour().
|
protected |
Definition at line 82 of file H5PartWrapper.h.