49 std::stringstream tmp1;
50 tmp1 <<
"\"processor-" << p <<
"\"";
52 std::stringstream tmp2;
53 tmp2 <<
"Number of particles of processor " << p;
61 int nLevel = (amrbeam->getAmrObject())->maxLevel() + 1;
63 for (
int lev = 0; lev < nLevel; ++lev) {
64 std::stringstream tmp1;
65 tmp1 <<
"\"level-" << lev <<
"\"";
67 std::stringstream tmp2;
68 tmp2 <<
"Number of particles at level " << lev;
74 if (
mode_m == std::ios::app )
79 std::string dateStr(simtimer.
date());
80 std::string timeStr(simtimer.
time());
83 ss <<
"Processor statistics '"
85 << dateStr <<
"" << timeStr;
100 amrbeam->gatherLevelStatistics();
122 for (
size_t p = 0; p < nProcs; ++ p) {
123 std::stringstream ss;
124 ss <<
"\"processor-" << p <<
"\"";
130 int nLevel = (amrbeam->getAmrObject())->maxLevel() + 1;
131 for (
int lev = 0; lev < nLevel; ++lev) {
132 std::stringstream ss;
133 ss <<
"\"level-" << lev <<
"\"";
size_t getLoadBalance(int p) const
std::string getInputFn()
get opals input filename
static OpalData * getInstance()
LBalWriter(const std::string &fname, bool restart)
void write(PartBunchBase< double, 3 > *beam)
void fillHeader(PartBunchBase< double, 3 > *beam)
void addColumn(const std::string &name, const std::string &type, const std::string &unit, const std::string &desc, std::ios_base::fmtflags flags=std::ios_base::scientific, unsigned short precision=15)
void addColumnValue(const std::string &name, const T &val)
void addDefaultParameters()
void addDescription(const std::string &text, const std::string &content)
void writeHeader()
Write SDDS header.
std::ios_base::openmode mode_m
First write to the statistics output file.
void addInfo(const std::string &mode, const size_t &no_row_counts)
std::string date() const
Return date.
std::string time() const
Return time.