ImpactX
|
Namespaces | |
detail | |
Classes | |
struct | BeamMonitor |
struct | NonlinearLensInvariants |
Enumerations | |
enum | OutputType { OutputType::PrintParticles, OutputType::PrintNonlinearLensInvariants, OutputType::PrintRefParticle } |
Functions | |
void | DiagnosticOutput (ImpactXParticleContainer const &pc, OutputType const otype, std::string file_name, int const step, bool const append) |
|
strong |
void impactx::diagnostics::DiagnosticOutput | ( | ImpactXParticleContainer const & | pc, |
OutputType const | otype, | ||
std::string | file_name, | ||
int const | step = 0 , |
||
bool const | append = false |
||
) |
ASCII output diagnostics associated with the beam.
This temporary implementation uses ASCII output. It is intended only for small tests where IO performance is not a concern. The implementation here serializes IO.
pc | container of the particles use for diagnostics |
otype | the type of output to produce |
file_name | the file name to write to |
step | the global step |
append | open a new file with a fresh header (false) or append data to an existing file (true) |