|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
#include <H5PartWrapperForPT.h>


Public Member Functions | |
| H5PartWrapperForPT (const std::string &fileName, h5_int32_t flags=H5_O_WRONLY) | |
| H5PartWrapperForPT (const std::string &fileName, int restartStep, std::string sourceFile, h5_int32_t flags=H5_O_RDWR) | |
| virtual | ~H5PartWrapperForPT () |
| virtual void | readHeader () |
| virtual void | readStep (PartBunch_t *, h5_ssize_t firstParticle, h5_ssize_t lastParticle) |
| virtual void | writeHeader () |
| virtual void | writeStep (PartBunch_t *, const std::map< std::string, double > &additionalStepAttributes, size_t particleContainerIndex=0) |
| virtual bool | predecessorIsSameFlavour () const |
| void | close () |
| double | getLastPosition () |
| void | storeCavityInformation () |
| size_t | getNumParticles () const |
Protected Member Functions | |
| 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" |
Private Member Functions | |
| void | readStepHeader (PartBunch_t *) |
| void | readStepData (PartBunch_t *, h5_ssize_t, h5_ssize_t) |
| void | writeStepHeader (PartBunch_t *, const std::map< std::string, double > &, size_t particleContainerIndex) |
| void | writeStepData (PartBunch_t *, size_t particleContainerIndex) |
Definition at line 26 of file H5PartWrapperForPT.h.
| H5PartWrapperForPT::H5PartWrapperForPT | ( | const std::string & | fileName, |
| h5_int32_t | flags = H5_O_WRONLY |
||
| ) |
Definition at line 35 of file H5PartWrapperForPT.cpp.
| H5PartWrapperForPT::H5PartWrapperForPT | ( | const std::string & | fileName, |
| int | restartStep, | ||
| std::string | sourceFile, | ||
| h5_int32_t | flags = H5_O_RDWR |
||
| ) |
Definition at line 38 of file H5PartWrapperForPT.cpp.
References H5PartWrapper::file_m, OpalData::getInstance(), and OpalData::setRestartStep().

|
virtual |
Definition at line 47 of file H5PartWrapperForPT.cpp.
|
inherited |
Definition at line 56 of file H5PartWrapper.cpp.
References H5PartWrapper::file_m, and REPORTONERROR.
Referenced by H5Writer::close(), H5PartWrapper::copyFile(), H5Writer::H5Writer(), H5PartWrapper::storeCavityInformation(), writeStep(), and H5PartWrapper::~H5PartWrapper().
|
protectedinherited |
Definition at line 121 of file H5PartWrapper.cpp.
References H5PartWrapper::close(), H5PartWrapper::copyFilePrefix_m, H5PartWrapper::copyFileSystem(), H5PartWrapper::copyHeader(), H5PartWrapper::copyStep(), H5PartWrapper::fileName_m, H5PartWrapper::numSteps_m, H5PartWrapper::open(), H5PartWrapper::predecessorOPALFlavour_m, READSTEPATTRIB, and REPORTONERROR.
Referenced by H5PartWrapper::H5PartWrapper().

|
protectedinherited |
Definition at line 244 of file H5PartWrapper.cpp.
References H5PartWrapper::fileName_m, H5PartWrapper::receiveFailureMessage(), and H5PartWrapper::sendFailureMessage().
Referenced by H5PartWrapper::copyFile().

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

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

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

|
inherited |
Definition at line 511 of file H5PartWrapper.cpp.
References H5PartWrapper::file_m, H5PartWrapper::numSteps_m, and REPORTONERROR.
Referenced by readStepData().
|
protectedinherited |
Definition at line 66 of file H5PartWrapper.cpp.
References H5PartWrapper::file_m, and H5PartWrapper::fileName_m.
Referenced by H5PartWrapper::copyFile(), H5PartWrapper::getLastPosition(), H5PartWrapper::H5PartWrapper(), H5PartWrapper::H5PartWrapper(), H5PartWrapper::storeCavityInformation(), and writeStep().
|
inlinevirtual |
Implements H5PartWrapper.
Definition at line 53 of file H5PartWrapperForPT.h.
References H5PartWrapper::predecessorOPALFlavour_m.
|
virtual |
Implements H5PartWrapper.
Definition at line 49 of file H5PartWrapperForPT.cpp.
References H5PartWrapper::file_m, OpalData::getInstance(), READFILEATTRIB, REPORTONERROR, OpalData::setGlobalPhaseShift(), and OpalData::setRestartDumpFreq().

|
virtual |
Implements H5PartWrapper.
Definition at line 101 of file H5PartWrapperForPT.cpp.
References H5PartWrapper::file_m, readStep(), readStepData(), readStepHeader(), and REPORTONERROR.
Referenced by readStep().

|
private |
Definition at line 147 of file H5PartWrapperForPT.cpp.
References Util::c_data(), H5PartWrapper::file_m, H5PartWrapper::getNumParticles(), gmsg, READDATA, and REPORTONERROR.
Referenced by readStep().

|
private |
Definition at line 111 of file H5PartWrapperForPT.cpp.
References H5PartWrapper::file_m, READSTEPATTRIB, PartBunch< T, Dim >::setGlobalTrackStep(), and PartBunch< T, Dim >::setT().
Referenced by readStep().

|
protectedinherited |
Definition at line 499 of file H5PartWrapper.cpp.
Referenced by H5PartWrapper::copyFileSystem().
|
inlinestaticprotectedinherited |
Definition at line 87 of file H5PartWrapper.h.
|
protectedinherited |
Definition at line 488 of file H5PartWrapper.cpp.
Referenced by H5PartWrapper::copyFileSystem().
|
inherited |
Write number of Cavities with autophase information
Definition at line 79 of file H5PartWrapper.cpp.
References H5PartWrapper::close(), H5PartWrapper::file_m, OpalData::getFirstMaxPhases(), OpalData::getInstance(), OpalData::getLastMaxPhases(), OpalData::getNumberOfMaxPhases(), H5PartWrapper::open(), WRITEFILEATTRIB, and WRITESTRINGFILEATTRIB.
Referenced by H5Writer::storeCavityInformation().

|
virtual |
Write file dump frequency.
Write global phase change
Implements H5PartWrapper.
Definition at line 211 of file H5PartWrapperForPT.cpp.
References Options::ebDump, H5PartWrapper::file_m, Util::getGitRevision(), OpalData::getGlobalPhaseShift(), OpalData::getInstance(), Options::psDumpFreq, Options::rhoDump, WRITEFILEATTRIB, and WRITESTRINGFILEATTRIB.

|
virtual |
Implements H5PartWrapper.
Definition at line 294 of file H5PartWrapperForPT.cpp.
References H5PartWrapper::close(), H5PartWrapper::open(), writeStepData(), and writeStepHeader().

|
private |
Definition at line 414 of file H5PartWrapperForPT.cpp.
References Util::c_data(), Options::ebDump, H5PartWrapper::file_m, PartBunch< T, Dim >::R(), REPORTONERROR, and WRITEDATA.
Referenced by writeStep().

|
private |
Write particle mass and charge per particle. (Consider making these file attributes.)
Definition at line 307 of file H5PartWrapperForPT.cpp.
References Physics::c, Physics::epsilon_0, Units::eV2GeV, H5PartWrapper::file_m, PartBunch< T, Dim >::get_maxExtent(), PartBunch< T, Dim >::get_origin(), PartBunch< T, Dim >::getGlobalTrackStep(), PartBunch< T, Dim >::getT(), H5PartWrapper::numSteps_m, Physics::pi, REPORTONERROR, WRITESTEPATTRIB, and WRITESTRINGSTEPATTRIB.
Referenced by writeStep().

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