48 std::stringstream tmp1;
49 tmp1 <<
"\"processor-" << p <<
"\"";
51 std::stringstream tmp2;
52 tmp2 <<
"Number of particles of processor " << p;
60 int nLevel = (amrbeam->getAmrObject())->maxLevel() + 1;
62 for (
int lev = 0; lev < nLevel; ++lev) {
63 std::stringstream tmp1;
64 tmp1 <<
"\"level-" << lev <<
"\"";
66 std::stringstream tmp2;
67 tmp2 <<
"Number of particles at level " << lev;
73 if (
mode_m == std::ios::app )
78 std::string dateStr(simtimer.
date());
79 std::string timeStr(simtimer.
time());
82 ss <<
"Processor statistics '"
84 << dateStr <<
"" << timeStr;
99 amrbeam->gatherLevelStatistics();
121 for (
size_t p = 0; p < nProcs; ++ p) {
122 std::stringstream ss;
123 ss <<
"\"processor-" << p <<
"\"";
129 int nLevel = (amrbeam->getAmrObject())->maxLevel() + 1;
130 for (
int lev = 0; lev < nLevel; ++lev) {
131 std::stringstream ss;
132 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.