46 void init(
const std::string& name,
int period,
int first_step=-1){
67 stream(0).Open(filename, mode);
81 stream(0).Open(filename, mode, comm);
101 stream(0).engine->BeginStep();
107 return (
stream(0).engine->CurrentStep() == 0);
115 stream(0).engine->EndStep();
void write(const XGC_IO_Stream &stream) const
Definition: xgc_io.hpp:211
Definition: xgc_io.hpp:192
bool has_been_triggered(int step) const
Definition: step_trigger.hpp:35
void init(const std::string &name, int period, int first_step=-1)
Definition: diagnostic.hpp:46
bool is_on
Definition: diagnostic.hpp:20
HostArray< XGC_IO_Stream > stream
Definition: diagnostic.hpp:11
void start_write_step()
Definition: diagnostic.hpp:99
void close_stream()
Definition: diagnostic.hpp:90
void open_stream(const std::string &filename, const XGC_IO_Mode &mode)
Definition: diagnostic.hpp:66
bool is_triggered(int step) const
Definition: step_trigger.hpp:25
void end_write_step()
Definition: diagnostic.hpp:113
bool is_triggered(int step)
Definition: diagnostic.hpp:24
int get_period() const
Definition: diagnostic.hpp:36
void write(const XGC_IO &xgc_io)
Definition: diagnostic.hpp:95
int get_period() const
Definition: step_trigger.hpp:41
XGC_IO_Mode
Definition: xgc_io.hpp:17
bool has_been_triggered(int step)
Definition: diagnostic.hpp:30
Diagnostic()
Definition: diagnostic.hpp:41
Definition: diagnostic.hpp:10
Definition: step_trigger.hpp:4
bool is_first_step()
Definition: diagnostic.hpp:105
StepTrigger step_trigger
Definition: diagnostic.hpp:16