OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
Structure
StatBaseWriter.h
Go to the documentation of this file.
1
#ifndef OPAL_STAT_BASE_WRITER_H
2
#define OPAL_STAT_BASE_WRITER_H
3
4
#include "
SDDSWriter.h
"
5
#include "
Utilities/Util.h
"
6
7
class
StatBaseWriter
:
public
SDDSWriter
{
8
9
public
:
10
StatBaseWriter
(
const
std::string& fname,
bool
restart);
11
15
unsigned
int
rewindToSpos
(
double
maxSpos);
16
};
17
18
19
inline
20
unsigned
int
StatBaseWriter::rewindToSpos
(
double
maxSPos) {
21
if
(
Ippl::myNode
() == 0) {
22
return
Util::rewindLinesSDDS
(this->
fname_m
, maxSPos);
23
}
24
return
0;
25
}
26
27
#endif
StatBaseWriter
Definition:
StatBaseWriter.h:7
IpplInfo::myNode
static int myNode()
Definition:
IpplInfo.cpp:794
SDDSWriter
Definition:
SDDSWriter.h:24
SDDSWriter.h
SDDSWriter::fname_m
std::string fname_m
Definition:
SDDSWriter.h:99
StatBaseWriter::rewindToSpos
unsigned int rewindToSpos(double maxSpos)
delete the last 'numberOfLines' lines of the statistics file
Definition:
StatBaseWriter.h:20
Util::rewindLinesSDDS
unsigned int rewindLinesSDDS(const std::string &fileName, double maxSPos, bool checkForTime)
rewind the SDDS file such that the spos of the last step is less or equal to maxSPos ...
Definition:
Util.cpp:154
StatBaseWriter::StatBaseWriter
StatBaseWriter(const std::string &fname, bool restart)
Definition:
StatBaseWriter.cpp:3
Util.h
Generated on Sat Jan 4 2020 14:48:07 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5